0
我用电子vue创建一个应用程序,运行时npm run dev
,这很好,但是运行时npm run pack
,当打开index.html时,我在控制台中得到了错误:electron-vue:'module is defined'
Uncaught ReferenceError: module is not defined at renderer.js:1
任何人都知道为什么?
谢谢!
我用电子vue创建一个应用程序,运行时npm run dev
,这很好,但是运行时npm run pack
,当打开index.html时,我在控制台中得到了错误:electron-vue:'module is defined'
Uncaught ReferenceError: module is not defined at renderer.js:1
任何人都知道为什么?
谢谢!
当您使用选项libraryTarget: 'commonjs2'
中的WebPack的输出作为解释这里的WebPack transpile这是预期:https://webpack.github.io/docs/configuration.html#output-librarytarget