aurelia / aurelia/cli

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

Open
#1,163 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
402
Forks
134
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

Open the contributing guide

Research direction

Inspect the generated webpack.netcore.config.js alongside webpack.config to understand how the .NET Core webpack configuration is assembled. Verify that the generated wrapper forwards environment variables and arguments to webpack.config, then confirm the resulting configuration receives both values when invoked.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.