代码拉取完成,页面将自动刷新
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
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。