Answers for "storybook absolute paths"

1

storybook absolute paths

const path = require('path');
module.exports = {
  ...other settings....,

  webpackFinal: async (config) => {
    config.resolve.modules = [
      ...(config.resolve.modules || []),
      path.resolve(__dirname, "../src"),
    ];

    return config;
  },

}

// Then add this in your tsconfig.json/jsconfig.json
{
......
    "compilerOptions": {
        .....
        "baseUrl": "./src"
    }
}
Posted by: Guest on April-09-2021
0

storybook absolute paths

{
...,
 "baseUrl": "./src/",
}
Posted by: Guest on April-09-2021
0

storybook absolute paths

const path = require('path');

module.exports = {
  ...other settings....,

  webpackFinal: async (config) => {
    config.resolve.modules = [
      ...(config.resolve.modules || []),
      path.resolve(__dirname, "../src"),
    ];

    return config;
  },

}
Posted by: Guest on April-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language