1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-03 09:18:17 +09:00
mastodon/storybook/webpack.config.js

24 lines
530 B
JavaScript
Raw Normal View History

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