Skip to content

Commit c51327e

Browse files
committed
Fixed style loaders in unittests
1 parent 280098e commit c51327e

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

conf/webpack/Test.js

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -30,46 +30,18 @@ class WebpackTestConfig extends WebpackBaseConfig {
3030
],
3131
loaders: [
3232
{
33-
test: /\.css$/,
33+
test: /\.cssmodule\.css$/,
3434
loaders: [
3535
'style',
3636
'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]'
3737
]
3838
},
3939
{
40-
test: /\.sass$/,
41-
loaders: [
42-
'style',
43-
'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]',
44-
'sass'
45-
]
46-
},
47-
{
48-
test: /\.scss$/,
49-
loaders: [
50-
'style',
51-
'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]',
52-
'sass'
53-
]
54-
},
55-
{
56-
test: /\.less$/,
57-
loaders: [
58-
'style',
59-
'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]',
60-
'less'
61-
]
62-
},
63-
{
64-
test: /\.styl$/,
65-
loaders: [
66-
'style',
67-
'css?modules&importLoaders=1&localIdentName=[name]-[local]-[hash:base64:5]',
68-
'stylus'
69-
]
40+
test: /^.((?!cssmodule).)*\.css$/,
41+
loader: 'null-loader'
7042
},
7143
{
72-
test: /\.(png|jpg|gif|mp4|ogg|svg|woff|woff2)$/,
44+
test: /\.(sass|scss|less|styl|png|jpg|gif|mp4|ogg|svg|woff|woff2)$/,
7345
loader: 'null-loader'
7446
},
7547
{

0 commit comments

Comments
 (0)