mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-29 00:10:12 +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: [
|
presets: [
|
||||||
[
|
[
|
||||||
'@vue/app',
|
'@vue/app',
|
||||||
@ -61,3 +62,15 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins
|
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