From c51327e2696cacc86449a40e51548e4de6377cba Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 20 Jun 2016 07:58:01 +0200 Subject: [PATCH] Fixed style loaders in unittests --- conf/webpack/Test.js | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/conf/webpack/Test.js b/conf/webpack/Test.js index d2ce036..2ac078a 100644 --- a/conf/webpack/Test.js +++ b/conf/webpack/Test.js @@ -30,46 +30,18 @@ class WebpackTestConfig extends WebpackBaseConfig { ], loaders: [ { - test: /\.css$/, + test: /\.cssmodule\.css$/, loaders: [ 'style', 'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]' ] }, { - test: /\.sass$/, - loaders: [ - 'style', - 'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]', - 'sass' - ] - }, - { - test: /\.scss$/, - loaders: [ - 'style', - 'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]', - 'sass' - ] - }, - { - test: /\.less$/, - loaders: [ - 'style', - 'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]', - 'less' - ] - }, - { - test: /\.styl$/, - loaders: [ - 'style', - 'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]', - 'stylus' - ] + test: /^.((?!cssmodule).)*\.css$/, + loader: 'null-loader' }, { - test: /\.(png|jpg|gif|mp4|ogg|svg|woff|woff2)$/, + test: /\.(sass|scss|less|styl|png|jpg|gif|mp4|ogg|svg|woff|woff2)$/, loader: 'null-loader' }, {