mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-25 06:20:13 +08:00
add treeshaking
This commit is contained in:
parent
abc0b71d1a
commit
b8774b1f8a
@ -1,4 +1,8 @@
|
||||
const plugins = []
|
||||
const plugins = []
|
||||
|
||||
if (process.env.UNI_OPT_TREESHAKINGNG) {
|
||||
plugins.push(require('@dcloudio/vue-cli-plugin-uni-optimize/packages/babel-plugin-uni-api/index.js'))
|
||||
}
|
||||
|
||||
if (process.env.UNI_PLATFORM === 'app-plus' && process.env.UNI_USING_V8) {
|
||||
const path = require('path')
|
||||
|
Loading…
x
Reference in New Issue
Block a user