Skip to content

Commit

Permalink
Merge pull request #123 from FintanK/patch-1
Browse files Browse the repository at this point in the history
Update package-scripts.js
  • Loading branch information
EQuimper committed Jan 12, 2019
2 parents c5872ec + 57a4be1 commit 6a3628b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package-scripts.js
Expand Up @@ -4,12 +4,14 @@ const npsUtils = require('nps-utils');

const { rimraf, crossEnv, series, concurrent } = npsUtils;

const webpackMode = process.env.NODE_ENV ? process.env.NODE_ENV : 'development';

module.exports = {
scripts: {
build: {
description: 'Building in production environment.',
default: series.nps('clean', 'build.build'),
build: 'webpack',
build: `webpack --mode ${webpackMode}`,
},
clean: {
description: 'Clean dist folder.',
Expand Down

0 comments on commit 6a3628b

Please sign in to comment.