Skip to content

Commit 5d780fe

Browse files
committed
fix(client): fix loading css
fix loading css other than Sass
1 parent 186ee4f commit 5d780fe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: templates/app/client/app/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '!!style-loader!css-loader!sass-loader!./app.scss';
1+
import 'style-loader!./app.<%= styleExt %>';
22

33
import './polyfills';
44

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,19 @@ module.exports = function makeWebpackConfig(options) {
195195
// LESS LOADER
196196
// Reference: https://github.com/
197197
test: /\.less$/,
198-
use: ['style-loader', 'css-loader', 'less-loader'],
198+
use: ['raw-loader', 'less-loader'],
199199
include: [
200200
path.resolve(__dirname, 'node_modules/bootstrap/less/*.less'),
201-
path.resolve(__dirname, 'client/app/app.less')
201+
path.resolve(__dirname, 'client')
202202
]<% } %>
203203
<%_ if(filters.stylus) { _%>
204204
// Stylus LOADER
205205
// Reference: https://github.com/
206206
test: /\.styl$/,
207-
use: ['style-loader', 'css-loader', 'stylus-loader'],
207+
use: ['raw-loader', 'stylus-loader'],
208208
include: [
209209
path.resolve(__dirname, 'node_modules/bootstrap-styl/bootstrap/*.styl'),
210-
path.resolve(__dirname, 'client/app/app.styl')
210+
path.resolve(__dirname, 'client')
211211
]<% } %>
212212
}<% } %>]
213213
};

0 commit comments

Comments
 (0)