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