From eefaf1d6251466eafa1e606815db2fc04e1a4450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Mon, 24 Oct 2016 12:41:17 +0100 Subject: [PATCH] reuse post-css configration for tests --- frontend/webpack/test.js | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/frontend/webpack/test.js b/frontend/webpack/test.js index d9a6353e..ba6eebc4 100644 --- a/frontend/webpack/test.js +++ b/frontend/webpack/test.js @@ -4,7 +4,7 @@ const path = require('path'); module.exports = { output: { - libraryTarget: 'commonjs2', + libraryTarget: 'commonjs2' }, plugins: [ config.__plugins['no-errors-plugin'], @@ -14,24 +14,7 @@ module.exports = { module: { loaders: [{ test: /\.css?$/, - loader: [ - 'style-loader', { - loader: 'css-loader', - options: { - modules: true, - importLoaders: 1 - } - }, { - loader: 'postcss-loader', - options: { - plugins: function() { - return [ - require('postcss-cssnext') - ]; - } - } - } - ] + loader: 'style-loader!css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss-loader' }] } }; \ No newline at end of file