mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-27 23:40:11 +08:00
fix: h5 framework compact option
This commit is contained in:
parent
e94c80c7d5
commit
ce5cdba317
@ -49,7 +49,8 @@ process.UNI_LIBRARIES.forEach(libraryName => {
|
||||
}
|
||||
])
|
||||
})
|
||||
module.exports = {
|
||||
|
||||
const config = {
|
||||
presets: [
|
||||
[
|
||||
'@vue/app',
|
||||
@ -60,4 +61,16 @@ module.exports = {
|
||||
]
|
||||
],
|
||||
plugins
|
||||
}
|
||||
}
|
||||
|
||||
const UNI_H5_TEST = '**/@dcloudio/uni-h5/dist/index.umd.min.js'
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
config.overrides = [{
|
||||
test: UNI_H5_TEST,
|
||||
compact: true,
|
||||
}]
|
||||
} else {
|
||||
config.ignore = [UNI_H5_TEST]
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
|
Loading…
x
Reference in New Issue
Block a user