mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 09:20:12 +01:00
feat(aot) - updated aot build
feat(aot) - fixed build fix(aot) - fixed buttons and modals providers fix(changes ) - remove unused changes
This commit is contained in:
parent
d89d176e54
commit
4112676ae9
19 changed files with 167 additions and 66 deletions
|
|
@ -3,6 +3,8 @@
|
|||
*/
|
||||
var path = require('path');
|
||||
|
||||
const EVENT = process.env.npm_lifecycle_event || '';
|
||||
|
||||
// Helper functions
|
||||
var ROOT = path.resolve(__dirname, '..');
|
||||
|
||||
|
|
@ -10,6 +12,10 @@ function hasProcessFlag(flag) {
|
|||
return process.argv.join('').indexOf(flag) > -1;
|
||||
}
|
||||
|
||||
function hasNpmFlag(flag) {
|
||||
return EVENT.includes(flag);
|
||||
}
|
||||
|
||||
function isWebpackDevServer() {
|
||||
return process.argv[1] && !! (/webpack-dev-server/.exec(process.argv[1]));
|
||||
}
|
||||
|
|
@ -20,5 +26,6 @@ function root(args) {
|
|||
}
|
||||
|
||||
exports.hasProcessFlag = hasProcessFlag;
|
||||
exports.hasNpmFlag = hasNpmFlag;
|
||||
exports.isWebpackDevServer = isWebpackDevServer;
|
||||
exports.root = root;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue