progress on migrating to heex templates and font-icons
This commit is contained in:
parent
d43daafdb7
commit
3eff955672
21793 changed files with 2161968 additions and 16895 deletions
assets_old/node_modules/webpack-cli/bin
40
assets_old/node_modules/webpack-cli/bin/cli.js
generated
vendored
Executable file
40
assets_old/node_modules/webpack-cli/bin/cli.js
generated
vendored
Executable file
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
'use strict';
|
||||
|
||||
const Module = require('module');
|
||||
|
||||
const originalModuleCompile = Module.prototype._compile;
|
||||
|
||||
require('v8-compile-cache');
|
||||
|
||||
const importLocal = require('import-local');
|
||||
const runCLI = require('../lib/bootstrap');
|
||||
const utils = require('../lib/utils');
|
||||
|
||||
// Prefer the local installation of `webpack-cli`
|
||||
if (importLocal(__filename)) {
|
||||
return;
|
||||
}
|
||||
|
||||
process.title = 'webpack';
|
||||
|
||||
if (utils.packageExists('webpack')) {
|
||||
runCLI(process.argv, originalModuleCompile);
|
||||
} else {
|
||||
const { promptInstallation, logger, colors } = utils;
|
||||
|
||||
promptInstallation('webpack', () => {
|
||||
utils.logger.error(`It looks like ${colors.bold('webpack')} is not installed.`);
|
||||
})
|
||||
.then(() => {
|
||||
logger.success(`${colors.bold('webpack')} was installed successfully.`);
|
||||
|
||||
runCLI(process.argv, originalModuleCompile);
|
||||
})
|
||||
.catch(() => {
|
||||
logger.error(`Action Interrupted, Please try once again or install ${colors.bold('webpack')} manually.`);
|
||||
|
||||
process.exit(2);
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue