1 Star 0 Fork 0

sunron/weui-miniprogram

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mpflow.config.js 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
xxxBW 提交于 2023-10-09 16:20 . feat: update terser
const TerserWebpackPlugin = require("terser-webpack-plugin");
module.exports = {
appId: 'wxe5f52902cf4de896',
projectName: '小程序自定义组件',
app: (mode) => (mode !== 'production' ? 'src/app' : undefined),
pages: (mode) => (mode !== 'production' ? undefined : ['src/components/index']),
sourceMap: (mode) => mode !== 'production',
compileType: 'miniprogram',
outputDir: 'miniprogram_dist',
plugins: ['@mpflow/plugin-babel', '@mpflow/plugin-typescript', '@mpflow/plugin-css'],
minimize: false,
configureWebpackChain: config => {
config.plugin('terser').use(TerserWebpackPlugin, [{
terserOptions: {
compress: {
directives: false
}
}
}])
},
settings: {
urlCheck: true,
es6: false,
postcss: false,
preloadBackgroundData: false,
minified: false,
newFeature: true,
coverView: true,
nodeModules: true,
autoAudits: false,
showShadowRootInWxmlPanel: true,
scopeDataCheck: false,
checkInvalidKey: true,
checkSiteMap: true,
uploadWithSourceMap: true,
compileHotReLoad: false,
babelSetting: {
ignore: [],
disablePlugins: [],
outputPath: ''
},
useIsolateContext: true,
useCompilerModule: false,
userConfirmedUseCompilerModuleSwitch: false
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/sunronsoft/weui-miniprogram.git
git@gitee.com:sunronsoft/weui-miniprogram.git
sunronsoft
weui-miniprogram
weui-miniprogram
master

搜索帮助