mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
chore(build): dependencies and config updates
This commit is contained in:
parent
252652b8f9
commit
658bd4be96
11 changed files with 650 additions and 614 deletions
|
|
@ -11,7 +11,7 @@ function hasProcessFlag(flag) {
|
|||
}
|
||||
|
||||
function isWebpackDevServer() {
|
||||
return process.argv[1] && !! (/webpack-dev-server$/.exec(process.argv[1]));
|
||||
return process.argv[1] && !! (/webpack-dev-server/.exec(process.argv[1]));
|
||||
}
|
||||
|
||||
function root(args) {
|
||||
|
|
@ -19,14 +19,6 @@ function root(args) {
|
|||
return path.join.apply(path, [ROOT].concat(args));
|
||||
}
|
||||
|
||||
function checkNodeImport(context, request, cb) {
|
||||
if (!path.isAbsolute(request) && request.charAt(0) !== '.') {
|
||||
cb(null, 'commonjs ' + request); return;
|
||||
}
|
||||
cb();
|
||||
}
|
||||
|
||||
exports.hasProcessFlag = hasProcessFlag;
|
||||
exports.isWebpackDevServer = isWebpackDevServer;
|
||||
exports.root = root;
|
||||
exports.checkNodeImport = checkNodeImport;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue