2017-10-13 14:52:44 -07:00
|
|
|
const fs = require('fs');
|
|
|
|
const sh = require('shelljs');
|
|
|
|
|
|
|
|
const PATCH_LOCK = 'node_modules/@angular/cli/models/webpack-configs/.patched';
|
|
|
|
|
2017-10-20 22:18:48 -07:00
|
|
|
if (!fs.existsSync(PATCH_LOCK)) {
|
|
|
|
sh.exec('patch -p0 -i tools/cli-patches/webpack-no-global.patch');
|
|
|
|
sh.touch(PATCH_LOCK);
|
|
|
|
}
|
2017-10-13 14:52:44 -07:00
|
|
|
|