Skip to content

Commit

Permalink
fix(webpack): fix CSS loader options
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Koroluk committed May 12, 2017
1 parent c1cd12c commit 3f7e2b4
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions templates/app/webpack.make.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,10 @@ module.exports = function makeWebpackConfig(options) {
// Reference: https://github.com/postcss/postcss-loader
// Postprocess your css with PostCSS plugins
test: /\.css$/,
use: !TEST
// Reference: https://github.com/webpack/extract-text-webpack-plugin
// Extract css files in production builds
//
// Reference: https://github.com/webpack/style-loader
// Use style-loader in development for hot-loading
? ExtractTextPlugin.extract({fallback: 'style-loader', use: ['css-loader', 'postcss-loader']})
// Reference: https://github.com/webpack/null-loader
// Skip loading css in test mode
: 'null-loader'
use: ['raw-loader', 'css-loader', 'postcss-loader'],
include: [
path.resolve(__dirname, 'client')
]
}<% if(!filters.css) { %>, {
<%_ if(filters.sass) { _%>
// SASS LOADER
Expand Down

0 comments on commit 3f7e2b4

Please sign in to comment.