Skip to content

Commit e9d158d

Browse files
committed
fix(webpack): fix jade/html config
1 parent a111303 commit e9d158d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -166,19 +166,20 @@ module.exports = function makeWebpackConfig(options) {
166166
test: /\.(png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot)$/,
167167
loader: 'file'
168168
}, {
169-
<%_ if(filters.sass) { _%>
169+
<%_ if(filters.jade) { _%>
170170
// Jade LOADER
171171
// Reference: https://github.com/webpack/jade-loader
172172
// Allow loading jade throw js
173173
test: /\.jade$/,
174-
loaders: ['raw', 'jade']
174+
loaders: ['pug-html']
175175
}, {<% } %>
176+
<%_ if(filters.html) { _%>
176177
// HTML LOADER
177178
// Reference: https://github.com/webpack/raw-loader
178179
// Allow loading html through js
179180
test: /\.html$/,
180181
loader: 'raw'
181-
}, {
182+
}, {<% } %>
182183
// CSS LOADER
183184
// Reference: https://github.com/webpack/css-loader
184185
// Allow loading css through js

0 commit comments

Comments
 (0)