Skip to content

Commit c4b23f3

Browse files
committed
Hot fix for production js
1 parent 8c1e82f commit c4b23f3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

generators/app/templates/gulp/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import util from 'gulp-util';
22

3-
const production = util.env.production || util.env.prod || false;
3+
const production = util.env.production || util.env.prod || util.env._.indexOf('build') !== -1 || false;
44
const destPath = 'build';
55

66
const config = {

generators/app/templates/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const webpack = require('webpack');
22
const path = require('path');
3-
const util = require('gulp-util');
43
const config = require('./gulp/config');
54
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
65

0 commit comments

Comments
 (0)