Total Complexity | 1 |
Complexity/F | 0 |
Lines of Code | 14 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | const ExtractTextPlugin = require("extract-text-webpack-plugin"); |
||
2 | const NODE_ENV = process.env.NODE_ENV; |
||
3 | |||
4 | if (NODE_ENV === 'production') { |
||
5 | return module.exports = { |
||
6 | test: /\.(scss|sass)$/, |
||
7 | loader: ExtractTextPlugin.extract('style', ['css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]', 'postcss', 'sass']) |
||
8 | } |
||
9 | } |
||
10 | |||
11 | module.exports = { |
||
12 | test: /\.(scss|sass)$/, |
||
13 | loaders: ['style', 'css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]', 'postcss', 'sass'] |
||
14 | }; |