storybook absolute paths

Solutions on MaxInterview for storybook absolute paths by the best coders in the world

showing results for - "storybook absolute paths"
Dounia
01 May 2017
1const path = require('path');
2module.exports = {
3  ...other settings....,
4
5  webpackFinal: async (config) => {
6    config.resolve.modules = [
7      ...(config.resolve.modules || []),
8      path.resolve(__dirname, "../src"),
9    ];
10
11    return config;
12  },
13
14}
15
16// Then add this in your tsconfig.json/jsconfig.json
17{
18......
19    "compilerOptions": {
20        .....
21        "baseUrl": "./src"
22    }
23}
24
Maya
29 Oct 2017
1{
2...,
3 "baseUrl": "./src/",
4}
5
Hanna
15 Feb 2016
1const path = require('path');
2
3module.exports = {
4  ...other settings....,
5
6  webpackFinal: async (config) => {
7    config.resolve.modules = [
8      ...(config.resolve.modules || []),
9      path.resolve(__dirname, "../src"),
10    ];
11
12    return config;
13  },
14
15}
16