Skip to content

Commit 67d85e6

Browse files
committed
Modify load logic to add all external css and less into a single file
1 parent c4d415c commit 67d85e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/templates/_webpack.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ module.exports = {
4040
test: /\.html$/,
4141
loader: 'vue-html'
4242
},
43+
{
44+
test: /\.css$/,
45+
loader: ExtractTextPlugin.extract('style!css')
46+
},
47+
{
48+
test: /\.less$/,
49+
loader: ExtractTextPlugin.extract('style!css!less')
50+
},
4351
{
4452
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
4553
loader: 'url',

0 commit comments

Comments
 (0)