Permalink
Browse files

fix(webpack): pass env to webpack correctly

closes #713
  • Loading branch information...
JeroenVinke committed Aug 23, 2017
1 parent 5c80762 commit 4880c19557f3d0e4fc37159321d9686c5f2caa70
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/resources/tasks/build-webpack.js
  2. +2 −2 lib/resources/tasks/build-webpack.ts
@@ -4,13 +4,13 @@ import project from '../aurelia.json';
import {CLIOptions, Configuration} from 'aurelia-cli';
const buildOptions = new Configuration(project.build.options);
const isProd = CLIOptions.getEnvironment() === 'prod';
const production = CLIOptions.getEnvironment() === 'prod';
const server = buildOptions.isApplicable('server');
const extractCss = buildOptions.isApplicable('extractCss');
const coverage = buildOptions.isApplicable('coverage');
const config = webpackConfig({
isProd, server, extractCss, coverage
production, server, extractCss, coverage
});
const compiler = webpack(config);
@@ -4,13 +4,13 @@ import * as project from '../aurelia.json';
import {CLIOptions, Configuration} from 'aurelia-cli';
const buildOptions = new Configuration(project.build.options);
const isProd = CLIOptions.getEnvironment() === 'prod';
const production = CLIOptions.getEnvironment() === 'prod';
const server = buildOptions.isApplicable('server');
const extractCss = buildOptions.isApplicable('extractCss');
const coverage = buildOptions.isApplicable('coverage');
const config = webpackConfig({
isProd, server, extractCss, coverage
production, server, extractCss, coverage
});
const compiler = webpack(config);

0 comments on commit 4880c19

Please sign in to comment.