mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-25 14:38:55 +08:00
add treeshaking
This commit is contained in:
parent
abc0b71d1a
commit
b8774b1f8a
@ -1,5 +1,9 @@
|
|||||||
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) {
|
if (process.env.UNI_PLATFORM === 'app-plus' && process.env.UNI_USING_V8) {
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user