Skip to content

Commit

Permalink
load sass when building production
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelknoch committed Aug 30, 2016
1 parent b8360aa commit f3c961a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ var WebpackCleanupPlugin = require('webpack-cleanup-plugin');

// local css modules
loaders.push({
test: /[\/\\]src[\/\\].*\.css$/,
loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]')
test: /[\/\\]src[\/\\].*\.scss/,
loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]', 'sass')
});
// global css files
loaders.push({
Expand Down

0 comments on commit f3c961a

Please sign in to comment.