aurelia / aurelia/cli

ESNext webpack via au build not using aurelia_project.environments file values

Open
#1,077 6 comments 0 reactions 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**

au --version
1.0.0-beta.6

OS X 10.14.3

node -v
v10.14.0

npm -v
6.7.0

ESNext & Webpack

When I specify different values for baseUrl in my aurelia_project environment files they are NOT propagated into the .../dist/index.js file (via the index.ejs template)

When I add some commenting I can see that the aurelia environment files values have not been imported into the HtmlWebpackPlugin metadata area -- since they are referenced directly from the module export in webpack.config.js it seems too late to do anything about that...

How can I get the dist index.js to use values from the aurelia_project environment files ?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the ESNext and Webpack build with `au build`, using different `baseUrl` values in the aurelia_project environment files. Read `webpack.config.js` and the `index.ejs` template, then trace how environment values reach the HtmlWebpackPlugin metadata and the generated `dist/index.js`. Done means the configured values are propagated into the generated output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.