Skip to content

webpack.netcore.config.js should pass environment/arguments to webpack.config #1163

Description

@alexisszabo

I'm submitting a bug report

  • Library Version:
    1.2.3

  • Loader/bundler:
    Webpack

Current behavior:

Generating a new aurelia project using webpack and .net core produces a webpack.netcore.config.js file that does not pass environment variables or arguments to webpack.config

  • What is the expected behavior?

The webpack.netcore.config.js should change from this (only relevant portions shown):

const webpackConfig = require('./webpack.config');
var originalConfig = webpackConfig({});

module.exports = () => {
  let config = originalConfig;

to this:

const webpackConfig = require('./webpack.config');

module.exports = (env, argv) => {
  let config = webpackConfig(env, argv);

so that environment variables and arguments are passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions