Skip to content

Commit

Permalink
Fixed style loaders in unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
weblogixx committed Jul 21, 2016
1 parent 280098e commit c51327e
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions conf/webpack/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
{
Expand Down

0 comments on commit c51327e

Please sign in to comment.