Update storybook static files option to load statics correctly

This commit is contained in:
Dominik Prokop
2019-01-09 14:01:46 +01:00
parent 0fb23bd334
commit 602bbcb0db
3 changed files with 5 additions and 36 deletions
@@ -34,10 +34,6 @@ module.exports = (baseConfig, env, config) => {
{ loader: 'sass-loader', options: { sourceMap: false } },
],
});
config.module.rules.push({
test: /\.(png|jpg|gif|ttf|eot|svg|woff(2)?)(\?[a-z0-9=&.]+)?$/,
loader: 'file-loader',
});
config.resolve.extensions.push('.ts', '.tsx');
return config;
};
+1 -1
View File
@@ -6,7 +6,7 @@
"scripts": {
"tslint": "tslint -c tslint.json --project tsconfig.json",
"typecheck": "tsc --noEmit",
"storybook": "start-storybook -p 9001 -c .storybook"
"storybook": "start-storybook -p 9001 -c .storybook -s ../../public"
},
"author": "",
"license": "ISC",