1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00
metamask-extension/.storybook/webpack.config.js

40 lines
796 B
JavaScript
Raw Normal View History

2018-05-03 19:51:15 +02:00
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
2018-05-03 19:51:15 +02:00
module.exports = {
module: {
strictExportPresence: true,
2018-05-03 19:51:15 +02:00
rules: [
{
test: /\.scss$/,
loaders: [
'style-loader',
{
loader: 'css-loader',
2018-05-03 19:51:15 +02:00
options: {
import: false,
url: false,
2018-05-03 19:51:15 +02:00
},
},
'resolve-url-loader',
{
loader: 'sass-loader',
options: {
sourceMap: true,
},
},
],
},
2018-05-03 19:51:15 +02:00
],
},
plugins: [
new CopyWebpackPlugin([
{
from: path.join('node_modules', '@fortawesome', 'fontawesome-free', 'webfonts'),
to: path.join('fonts', 'fontawesome'),
},
]),
],
2018-05-03 19:51:15 +02:00
}