Skip to content

Commit 3f7e2b4

Browse files
author
Andrew Koroluk
committed
fix(webpack): fix CSS loader options
1 parent c1cd12c commit 3f7e2b4

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Diff for: templates/app/webpack.make.js

+4-10
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,10 @@ module.exports = function makeWebpackConfig(options) {
171171
// Reference: https://github.com/postcss/postcss-loader
172172
// Postprocess your css with PostCSS plugins
173173
test: /\.css$/,
174-
use: !TEST
175-
// Reference: https://github.com/webpack/extract-text-webpack-plugin
176-
// Extract css files in production builds
177-
//
178-
// Reference: https://github.com/webpack/style-loader
179-
// Use style-loader in development for hot-loading
180-
? ExtractTextPlugin.extract({fallback: 'style-loader', use: ['css-loader', 'postcss-loader']})
181-
// Reference: https://github.com/webpack/null-loader
182-
// Skip loading css in test mode
183-
: 'null-loader'
174+
use: ['raw-loader', 'css-loader', 'postcss-loader'],
175+
include: [
176+
path.resolve(__dirname, 'client')
177+
]
184178
}<% if(!filters.css) { %>, {
185179
<%_ if(filters.sass) { _%>
186180
// SASS LOADER

0 commit comments

Comments
 (0)