Skip to content

Commit 857b969

Browse files
committed
Add json/html/font load support
1 parent b2a11cc commit 857b969

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

app/templates/_webpack.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,27 @@ module.exports = {
2121
exclude: /node_modules|dist/,
2222
loader: 'babel'
2323
},
24+
{
25+
test: /\.json$/,
26+
loader: 'json'
27+
},
28+
{
29+
test: /\.html$/,
30+
loader: 'vue-html'
31+
},
2432
{
2533
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
2634
loader: 'url',
2735
query: {
2836
limit: 10000
2937
}
38+
},
39+
{
40+
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
41+
loader: 'url',
42+
query: {
43+
limit: 10000
44+
}
3045
}
3146
]
3247
}

0 commit comments

Comments
 (0)