Commit 1e16d066 authored by 赵啸非's avatar 赵啸非

修改配置文件

parent 1591efff
const FileManagerPlugin = require('filemanager-webpack-plugin')
module.exports = { module.exports = {
productionSourceMap: false, productionSourceMap: false,
assetsDir: "s", assetsDir: "s",
lintOnSave: false, lintOnSave: false,
configureWebpack: {
plugins: [
new FileManagerPlugin({
// 注意!记得这里需要加一层events节点,否则会报错噢,宝
events: {
onEnd: {
delete: [
'./setup-project-manager-ui.tar.gz',
],
archive: [{
source: './dist',
destination: './setup-project-manager-ui.tar.gz',
format: 'tar',
options: {
gzip: true,
gzipOptions: {
level: 1
},
globOptions: {
nomount: true
}
}
}]
}
}
})
]
},
devServer: { devServer: {
inline: true, inline: true,
disableHostCheck: true, disableHostCheck: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment