Skip to content

Commit 0d2d2a0

Browse files
committed
Changing webpack config url loader config
1 parent fcb7f4a commit 0d2d2a0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

webpack.config.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = (env, arg) => ({
2424
name: '[path][name].[ext]',
2525
}
2626
},
27-
{
27+
/*{
2828
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
2929
use: [{
3030
loader: "url-loader",
@@ -38,7 +38,16 @@ module.exports = (env, arg) => ({
3838
// options: {
3939
// name: '[path][name].[ext]',
4040
// }
41-
},
41+
},*/
42+
{
43+
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
44+
loader: "url-loader",
45+
options: {
46+
name: '[path][name].[ext]',
47+
limit: 10000,
48+
mimetype: 'application/font-woff',
49+
}
50+
},
4251
{
4352
test: /\.(ttf|eot|svg|png)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
4453
loader: "file-loader",

0 commit comments

Comments
 (0)