adding a webpack CLI init task

This commit is contained in:
Ken 2019-09-17 12:15:00 -07:00
Родитель b7be70942e
Коммит 2285c2e9d6
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -12,4 +12,4 @@ export * from './upgradeStackTask';
export * from './copyInstructionsTask';
export * from './prettierTask';
export * from './eslintTask';
export * from './webpackCLITask';
export * from './webpackCliTask';

Просмотреть файл

@ -9,7 +9,7 @@ import { tryRequire } from '../tryRequire';
* @returns TaskFunction
*/
export function webpackCliInitTask(customScaffold?: string, auto: Boolean = false): TaskFunction {
return async function webpackCli() {
return function webpackCli() {
const init = tryRequire('@webpack-cli/init').default;
if (!init) {
logger.warn('webpack-cli init requires three dependencies: @webpack-cli/init (preferred - as a devDependency)');