We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba477d3 commit ef0d4afCopy full SHA for ef0d4af
packages/angular-cli/models/webpack-build-common.ts
@@ -56,13 +56,9 @@ export function getWebpackCommonConfig(
56
57
// add entry points and lazy chunks
58
globalScripts.forEach(script => {
59
+ let scriptPath = `script-loader!${script.path}`;
60
if (script.lazy) { lazyChunks.push(script.entry); }
- entryPoints[script.entry] = (entryPoints[script.entry] || []).concat(script.path);
61
- });
62
-
63
- // load global scripts using script-loader
64
- extraRules.push({
65
- include: globalScripts.map((script) => script.path), test: /\.js$/, loader: 'script-loader'
+ entryPoints[script.entry] = (entryPoints[script.entry] || []).concat(scriptPath);
66
});
67
}
68
0 commit comments