fix: fix prism auto initialization

This commit is contained in:
Justineo 2022-02-23 22:07:26 +08:00
parent ec151a405a
commit 74da37a7a6
2 changed files with 6 additions and 1 deletions

View File

@ -46,10 +46,11 @@ module.exports = {
css: ['veui-theme-dls/common.less', '@/assets/styles/global.styl', 'veui-theme-dls/'],
plugins: [
{ src: '~plugins/hm.js', ssr: false },
{ src: '~plugins/i18n.js' },
{ src: '~plugins/l10n.js' },
{ src: '~plugins/target.js', ssr: false },
{ src: '~plugins/hm.js', ssr: false }
{ src: '~plugins/prism.js', ssr: false }
],
/**

4
plugins/prism.js Normal file
View File

@ -0,0 +1,4 @@
export default () => {
window.Prism = window.Prism || {}
window.Prism.manual = true
}