mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-09-26 22:49:14 +08:00
Fix Vue runtime on production build (fix #4538)
This commit is contained in:
parent
ed57e6d242
commit
abe8dee241
@ -18,6 +18,6 @@ previewConfig.plugins.push(
|
||||
)
|
||||
|
||||
// see src/client/init-vue.ts
|
||||
lodash.set(previewConfig, 'resolve.alias.vue$', 'vue/dist/vue.common.prod.js')
|
||||
lodash.set(previewConfig, 'resolve.alias.vue$', 'vue/dist/vue.runtime.common.prod.js')
|
||||
|
||||
export default previewConfig
|
||||
|
@ -19,6 +19,9 @@ mainConfig.plugins.push(
|
||||
}),
|
||||
)
|
||||
|
||||
// see src/client/init-vue.ts
|
||||
lodash.set(mainConfig, 'resolve.alias.vue$', 'vue/dist/vue.runtime.common.prod.js')
|
||||
|
||||
previewConfig.output.filename = 'bilibili-evolved.preview.user.js'
|
||||
previewConfig.mode = 'production'
|
||||
const targets = [mainConfig, previewConfig].map(config => {
|
||||
@ -27,7 +30,4 @@ const targets = [mainConfig, previewConfig].map(config => {
|
||||
return config
|
||||
})
|
||||
|
||||
// see src/client/init-vue.ts
|
||||
lodash.set(previewConfig, 'resolve.alias.vue$', 'vue/dist/vue.common.prod.js')
|
||||
|
||||
export default targets
|
||||
|
Loading…
Reference in New Issue
Block a user