You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works, such that I'd get admin-app.bundle.js, however, when I do "au run", I get an error: TypeError: Cannot read property 'unshift' of undefined
This appears to be related to aurelia_project/tasks/run.ts assuming the entry point is found at config.entry.app (line 32 and 35). However, by specifying it as 'admin-app' in webpack.config.js, there is no such property "app" in config.entry.
What is the expected behavior?
I should be able to rename the entrypoint to admin-app such that the scripts reflect that name, and "au run" should work without errors. Ideally there should be a way to specify the name/entry point in aurelia_project/aurelia.json
What is the motivation / use case for changing the behavior?
I would like to namespace my scripts in an easy, convenient way, since I maintain multiple aurelia projects and serve the scripts from a CDN. Not all of my projects can reference the same app.bundle.js file.
The text was updated successfully, but these errors were encountered:
I'm submitting a bug report
Aurelia CLI 1.0.2
Please tell us about your environment:
Operating System:
OSX 10.14|
Node Version:
8.9..0
5.5.1
Browser:
all
Language:
all
Loader/bundler:
Webpack
Current behavior:
I want to change the name of the entry point in webpack.config.js from
to
This is so that in output I'm able to redefine what
[name]
is:This works, such that I'd get
admin-app.bundle.js
, however, when I do "au run", I get an error:TypeError: Cannot read property 'unshift' of undefined
This appears to be related to
aurelia_project/tasks/run.ts
assuming the entry point is found atconfig.entry.app
(line 32 and 35). However, by specifying it as 'admin-app' in webpack.config.js, there is no such property "app" inconfig.entry
.I should be able to rename the entrypoint to
admin-app
such that the scripts reflect that name, and "au run" should work without errors. Ideally there should be a way to specify the name/entry point inaurelia_project/aurelia.json
I would like to namespace my scripts in an easy, convenient way, since I maintain multiple aurelia projects and serve the scripts from a CDN. Not all of my projects can reference the same
app.bundle.js
file.The text was updated successfully, but these errors were encountered: