You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating Angular from version 11 to 14, the build no longer works correctly. The scripts tag (for runtime, polyfills and main) in the index.html are missing.
I use the "@angular-builders/custom-webpack" with the Webpack CompressionPlugin. To not have the compressed and uncompressed files in the dist directory, the 'deleteOriginalAssets' property is set to true. If 'deleteOriginalAssets' is set to false, the build is working fine.
Minimal Reproduction
Set up a new project with angular cli (no routing, css) ng new repro-app
In the dist directory you will see the zipped files and the index.html with missing scripts tag. (Running npm run build with deleteOriginalAssets set to false, the index.html is fine).
Expected Behavior
Index.html with script tags for main, polyfills and runtime
Describe the Bug
After updating Angular from version 11 to 14, the build no longer works correctly. The scripts tag (for runtime, polyfills and main) in the index.html are missing.
I use the "@angular-builders/custom-webpack" with the Webpack CompressionPlugin. To not have the compressed and uncompressed files in the dist directory, the 'deleteOriginalAssets' property is set to true. If 'deleteOriginalAssets' is set to false, the build is working fine.
Minimal Reproduction
ng new repro-app
@angular-builders/custom-webpack:browser
npm i
npm run build
Expected Behavior
Index.html with script tags for main, polyfills and runtime
Something like this is missing:
The text was updated successfully, but these errors were encountered: