mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2026-04-22 00:00:04 +08:00
feat(h5): babel-plugin-console
This commit is contained in:
@@ -4,7 +4,16 @@ if (process.env.UNI_OPT_TREESHAKINGNG) {
|
|||||||
plugins.push(require('@dcloudio/vue-cli-plugin-uni-optimize/packages/babel-plugin-uni-api/index.js'))
|
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
|
||||||
|
) ||
|
||||||
|
(
|
||||||
|
process.env.UNI_PLATFORM === 'h5' &&
|
||||||
|
process.env.UNI_H5_BROWSER === 'builtin'
|
||||||
|
)
|
||||||
|
) {
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
const isWin = /^win/.test(process.platform)
|
const isWin = /^win/.test(process.platform)
|
||||||
|
|||||||
Reference in New Issue
Block a user