build(aio): update to @angular/cli@6.0.0-rc.2 + project layout update (#23234)
project layout was updated using: yarn ng update @angular/cli --migrate-only --from=1.7.3 PR Close #23234
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
const fs = require('fs');
|
||||
const sh = require('shelljs');
|
||||
|
||||
const PATCH_LOCK = 'node_modules/@angular/cli/models/webpack-configs/.patched';
|
||||
const PATCH_LOCK = 'node_modules/@angular/cli/.patched';
|
||||
|
||||
if (!fs.existsSync(PATCH_LOCK)) {
|
||||
sh.exec('patch -p0 -i tools/cli-patches/webpack-no-global.patch');
|
||||
sh.touch(PATCH_LOCK);
|
||||
}
|
||||
|
||||
|
@ -1,16 +0,0 @@
|
||||
--- node_modules/@angular/cli/models/webpack-configs/browser.js 2017-11-01 12:07:56.000000000 +0100
|
||||
+++ node_modules/@angular/cli/models/webpack-configs/browser.js 2017-11-01 12:08:12.000000000 +0100
|
||||
@@ -104,11 +104,11 @@
|
||||
].concat(extraPlugins),
|
||||
node: {
|
||||
fs: 'empty',
|
||||
- global: true,
|
||||
+ global: false,
|
||||
crypto: 'empty',
|
||||
tls: 'empty',
|
||||
net: 'empty',
|
||||
- process: true,
|
||||
+ process: false,
|
||||
module: false,
|
||||
clearImmediate: false,
|
||||
setImmediate: false
|
Reference in New Issue
Block a user