Open jasmine-song opened 2 years ago
您好,您的邮件我已收到,我会尽快给您回复。
您好,您的邮件我已收到,我会尽快给您回复。
您好,找到原因了,是提出来的vendors没有被index.html引入。webpack config.js中的HtmlWebpackPlugin未和angular.json配置融合。是不能"index": { "input": "src/index.html", "output": "index-old.html" },
这样配置的,会提示
把builder改为custom-webpack好了。
"builder": "@angular-builders/custom-webpack:browser",
建议我为您的demo提个pull request修改吗。 还有个疑问。您为什么入口文件是main.ts,chunks中配置就要把main放到最后呢。
webpack config splitchunk, but after compilation and deployment, static resources not send request, I found JS introduced by HTML not to load content, request js file has respones, but js file not loaded. What's wrong with my custom webpack config? this is my webpack.partial.js config "@angular/core": "9.1.13", "@types/webpack" : "4.41.32", "webpack":"4.42.0",
this is my angular.json config