diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index 38ee924..12e6974 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -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', },