1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

reuse post-css configration for tests

This commit is contained in:
Sérgio Ramos 2016-10-24 12:41:17 +01:00
parent 7412d28277
commit eefaf1d625

View File

@ -4,7 +4,7 @@ const path = require('path');
module.exports = { module.exports = {
output: { output: {
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2'
}, },
plugins: [ plugins: [
config.__plugins['no-errors-plugin'], config.__plugins['no-errors-plugin'],
@ -14,24 +14,7 @@ module.exports = {
module: { module: {
loaders: [{ loaders: [{
test: /\.css?$/, test: /\.css?$/,
loader: [ loader: 'style-loader!css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss-loader'
'style-loader', {
loader: 'css-loader',
options: {
modules: true,
importLoaders: 1
}
}, {
loader: 'postcss-loader',
options: {
plugins: function() {
return [
require('postcss-cssnext')
];
}
}
}
]
}] }]
} }
}; };