Closed Sayid1 closed 5 years ago
yarn serve 打开页面错误如下
Uncaught SyntaxError: Unexpected token <
Uncaught ReferenceError: vender_87f3be8acd6aadd91537 is not defined
at eval (eval at dll-reference vender_87f3be8acd6aadd91537 (app.js:2106), <anonymous>:1:18)
at Object.dll-reference vender_87f3be8acd6aadd91537 (app.js:2106)
at __webpack_require__ (app.js:724)
at fn (app.js:101)
at eval (global.js from dll-reference vender_87f3be8acd6aadd91537?478a:1)
at Object../node_modules/webpack/buildin/global.js (app.js:1896)
at __webpack_require__ (app.js:724)
at fn (app.js:101)
at eval (punycode.js:521)
at Object../node_modules/node-libs-browser/node_modules/punycode/punycode.js (app.js:1685)
:)
我在github上放了一个在线链接https://github.com/Sayid1/dll-test
我已经在你的github地址回答你的错误问题。
问题解决了吗,我也遇见了
问题解决了吗,我也遇见了
看上面的repo和issue
:)
我自己配置dllplugin,运行yarn serve打开页面一直报错。但是yarn build后却可以正常打开页面
这是webpack.config.dll.js
这是vue.config.js
public/index.html里面加了一行