Skip to content

Commit

Permalink
Disable ES Module syntax in file-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant authored and freezy committed Dec 26, 2019
1 parent 6077bf7 commit 622cb07
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,15 @@ module.exports = opts => {
],
},
{
test: /\.(eot|woff|woff2|ttf|otf|png|jpg|swf|hdr|exr|vpx)$/,
use: { loader: 'file-loader', options: {name: '[path][name]-[sha256:hash:base58:8].[ext]'} },
}, {
test: /\.(eot|woff2?|ttf|otf|png|jpe?g|swf|hdr|exr|vpx)$/i,
use: {
loader: 'file-loader',
options: {
name: '[path][name]-[sha256:hash:base58:8].[ext]',
esModule: false
} },
},
{
test: /\.ejs$/,
use: 'ejs-loader',
},
Expand Down

0 comments on commit 622cb07

Please sign in to comment.