2016-10-24 16:11:50 +03:00
|
|
|
const base = require('./base');
|
2016-10-24 14:23:05 +03:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
output: {
|
2016-10-24 14:41:17 +03:00
|
|
|
libraryTarget: 'commonjs2'
|
2016-10-24 14:23:05 +03:00
|
|
|
},
|
|
|
|
plugins: [
|
2016-10-24 16:11:50 +03:00
|
|
|
base.plugins['no-errors-plugin'],
|
|
|
|
base.plugins['loader-options-plugin'],
|
|
|
|
base.plugins['define-plugin']
|
2016-10-24 14:23:05 +03:00
|
|
|
],
|
|
|
|
module: {
|
|
|
|
loaders: [{
|
|
|
|
test: /\.css?$/,
|
2016-10-26 12:51:06 +03:00
|
|
|
loader: [
|
|
|
|
'css-loader?',
|
|
|
|
'modules&importLoaders=1&',
|
|
|
|
'localIdentName=[name]__[local]___[hash:base64:5]!',
|
|
|
|
'postcss-loader'
|
|
|
|
].join('')
|
2016-10-24 14:23:05 +03:00
|
|
|
}]
|
|
|
|
}
|
2016-10-24 16:11:50 +03:00
|
|
|
};
|