2016-12-14 17:21:31 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module: {
|
|
|
|
loaders: [
|
2017-05-13 14:55:56 +01:00
|
|
|
{
|
|
|
|
test: /\.(jpg|jpeg|png|gif|svg|eot|ttf|woff|woff2)$/i,
|
|
|
|
loader: 'url-loader'
|
|
|
|
},
|
2016-12-14 17:21:31 +00:00
|
|
|
{
|
|
|
|
test: /.scss$/,
|
2017-05-13 14:55:56 +01:00
|
|
|
loaders: ["style-loader", "css-loader", "postcss-loader", "sass-loader"]
|
2016-12-14 17:21:31 +00:00
|
|
|
}
|
|
|
|
]
|
2017-05-13 14:55:56 +01:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
modulesDirectories: [
|
|
|
|
path.resolve(__dirname, '..', 'storybook'),
|
|
|
|
path.resolve(__dirname, '..', 'app', 'javascript'),
|
|
|
|
path.resolve(__dirname, '..', 'node_modules')
|
|
|
|
]
|
2016-12-14 17:21:31 +00:00
|
|
|
}
|
2017-05-13 14:55:56 +01:00
|
|
|
};
|