Skip to content

Commit

Permalink
fix(webpack): pass env to webpack correctly
Browse files Browse the repository at this point in the history
closes #713
  • Loading branch information
JeroenVinke committed Aug 23, 2017
1 parent 5c80762 commit 4880c19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/resources/tasks/build-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions lib/resources/tasks/build-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4880c19

Please sign in to comment.