Skip to content

Commit

Permalink
fix: 修复 es6 语法错误
Browse files Browse the repository at this point in the history
config/packing.js:8
export default (packing) => {
^^^^^^
  • Loading branch information
zhongzhi107 committed May 15, 2018
1 parent 60c4346 commit abd837b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/bin/packing-build.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/usr/bin/env node

import { resolve } from 'path';
import { red, yellow } from 'chalk';
import { red } from 'chalk';
import open from 'open';
import webpack from 'webpack';
import program from 'commander';
import validateSchema from '../lib/validate-schema';
import '../bootstrap';
import { pRequire, getContext } from '..';

validateSchema();

program
.option('-o, --open', 'open webpack visualizer report')
.parse(process.argv);
Expand Down
3 changes: 3 additions & 0 deletions src/bin/packing-dll.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ import program from 'commander';
import webpack from 'webpack';
import mkdirp from 'mkdirp';
import loaderUtils from 'loader-utils';
import validateSchema from '../lib/validate-schema';
import '../bootstrap';
import { pRequire, getContext } from '..';
import packingPackage from '../../package.json';

validateSchema();

program
.option('-c, --clean', 'clean dll cache')
.parse(process.argv);
Expand Down
3 changes: 3 additions & 0 deletions src/bin/packing-serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import { Spinner } from 'cli-spinner';
import { middleware as packingTemplate } from '..';
import validateSchema from '../lib/validate-schema';
import '../bootstrap';
import { pRequire, getContext } from '..';

validateSchema();

program
.option('-c, --clean', 'clean dll cache')
.option('-d, --no-dll', 'skip dll build')
Expand Down
3 changes: 0 additions & 3 deletions src/bin/packing.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#!/usr/bin/env node

import program from 'commander';
import validateSchema from '../lib/validate-schema';
import pkg from '../../package.json';

console.log('Versions:');
console.log(` user-agent: ${process.env.npm_config_user_agent}`);
console.log(` packing: ${pkg.version}`);

validateSchema();

program
.command('serve', 'start dev web server')
.command('serve-dist', 'review build output')
Expand Down

0 comments on commit abd837b

Please sign in to comment.