add image-webpack-loader

This commit is contained in:
chuzhixin 2020-10-28 09:54:46 +08:00
parent fee0775a0d
commit 6b0069f623
2 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,7 @@
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-vue": "^7.1.0",
"filemanager-webpack-plugin": "^3.0.0-alpha.4",
"image-webpack-loader": "^7.0.1",
"less": "^3.13.1-alpha.1",
"less-loader": "^7.0.2",
"lint-staged": "^10.5.0",

View File

@ -140,6 +140,14 @@ module.exports = {
},
])
.end()
config.module
.rule('images')
.use('image-webpack-loader')
.loader('image-webpack-loader')
.options({
bypassOnDebug: true,
})
.end()
})
if (build7z) {