3 Commits

Author SHA1 Message Date
Hans Larsen
90fddc5ffb fix(@angular/cli): publicPath should not be path.join
Using path.join removes duplicated slashes, like in https://. This code
is the correct version used in the original html-webpack-plugin.

Fixes #7650
2017-09-13 10:24:57 -07:00
Hans Larsen
e0a70a3d1b fix(@angular/cli): take publicPath into account when building entry map
Fixes #7628
2017-09-08 14:38:25 -07:00
Filipe Silva
e8f27f029a feat(@angular/cli): support sourcemaps and minification in scripts
Adds sourcemap and minification to javascript added via the `scripts` array in `.angular-cli.json`.

`script-loader` is no longer used, which should help with CSP since it used `eval`.

Scripts will no longer appear in the console output for `ng build`, as they are now assets instead of webpack entry points.

It's no longer possible to have the `output` property of both a `scripts` and a `styles` entry pointing to the same file. This wasn't officially supported or listed in the docs, but used to be possible.

Fix #2796
Fix #7226
Fix #7290

Related to #6872
2017-08-17 16:38:35 -04:00