Skip to content

Commit 25cc02c

Browse files
author
Dave Ferris
committed
Add custom webpack config
1 parent 63abd0b commit 25cc02c

File tree

3 files changed

+200
-3872
lines changed

3 files changed

+200
-3872
lines changed

.storybook/webpack.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const path = require('path');
2+
3+
module.exports = function({ config }) {
4+
config.module.rules.push({
5+
test: /\.scss$/,
6+
loaders: ['style-loader', 'css-loader', 'sass-loader'],
7+
include: path.resolve(__dirname, '../')
8+
});
9+
10+
return config;
11+
};

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"scripts": {
1414
"build": "NODE_ENV=production babel src --out-dir lib",
1515
"lint": "eslint . --ext .js,.jsx",
16-
"test": "react-scripts test",
17-
"eject": "react-scripts eject",
1816
"storybook": "start-storybook -p 9009 -s public",
1917
"build-storybook": "build-storybook -s public",
2018
"build-storybook-docs": "build-storybook -s public --docs",
@@ -53,11 +51,13 @@
5351
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
5452
"babel-preset-env": "^1.7.0",
5553
"babel-preset-react": "^6.24.1",
54+
"css-loader": "^3.4.2",
5655
"eslint-config-airbnb": "^18.0.1",
5756
"eslint-import-resolver-webpack": "^0.11.1",
5857
"eslint-plugin-babel": "^5.3.0",
5958
"eslint-utils": "^1.4.3",
60-
"react-scripts": "3.2.0"
59+
"sass-loader": "^8.0.2",
60+
"style-loader": "^1.1.3"
6161
},
6262
"description": "UI Storybook design system",
6363
"files": [

0 commit comments

Comments
 (0)