Skip to content

Commit

Permalink
version 4.1.1 bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyou2012 committed Nov 9, 2018
1 parent 26d51f2 commit ac0adf6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dool",
"version": "4.1.0",
"version": "4.1.1",
"description": "d-band tool & dev tool",
"bin": {
"dool": "bin/dool"
Expand Down Expand Up @@ -111,7 +111,7 @@
"mocha": "^5.0.0",
"nyc": "^13.1.0",
"object-assign": "^4.1.0",
"postcss-preset-env": "^6.3.0",
"postcss-preset-env": "^6.4.0",
"pre-commit": "^1.2.2",
"rimraf": "^2.6.1"
}
Expand Down
1 change: 1 addition & 0 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { getOptions, log } from './utils';
export default (args, callback) => {
args.mode = args.mode || 'production';
const env = process.env.NODE_ENV || 'production';
process.env.NODE_ENV = env;
const options = getOptions(args, env);

if (options.cluster) {
Expand Down
1 change: 1 addition & 0 deletions src/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { getOptions } from './utils';
export default (args) => {
args.mode = args.mode || 'production';
const env = process.env.NODE_ENV || 'production';
process.env.NODE_ENV = env;
const options = getOptions(args, env);
const distPath = resolve(options.cwd, options.outputPath || './dist');
fs.removeSync(distPath);
Expand Down
1 change: 1 addition & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import getConfig from './config';
export default (args) => {
args.mode = args.mode || 'development';
const env = process.env.NODE_ENV || 'development';
process.env.NODE_ENV = env;
const options = getOptions(args, env);
const { verbose, https, port } = options;
const devServer = {
Expand Down

0 comments on commit ac0adf6

Please sign in to comment.