question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building a Production Bundle from Aurelia-CLI

See original GitHub issue

I’m submitting a bug report

  • Library Version: 0.17.0

Please tell us about your environment:

  • Operating System: Served on Linux (Ubuntu) Built on Windows 10
  • Node Version: 6.3.1
  • NPM Version: 3.10.6
  • Browser: all
  • Language: TypeScript 2.0

Current behavior: vendor-bundle.js is looking in the node_modules folder for dependencies after bundling.

The following exception is being thrown: vendor-bundle.js:4122 GET http://localhost/node_modules/aurelia-templating-resources/dist/amd/aurelia-templating-resources.js

Expected/desired behavior: run au build or au build --env prod Create docker container from Nginx, copy index.html and scripts folder into public nginx html folder.

  • What is the expected behavior? The vendor-bundle.js has all the dependencies required to deploy and run.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:38 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
EisenbergEffectcommented, Oct 3, 2016

Sounds good. I just wanted you to be aware of it while you were in there in case you saw an easy way to address it.

1reaction
EisenbergEffectcommented, Sep 24, 2016

@fedoranimus Thanks for the update! We recently found a few places where this was causing a problem. We’ll get it soon. Thanks for confirming it fixes your scenario!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI's built-in Bundler - Aurelia
By default, the CLI bundler creates two bundles, an app-bundle.js , and a vendor-bundle.js . This is code splitting out of the box....
Read more >
Building a Production Bundle from Aurelia-CLI - Stack Overflow
Using the Aurelia CLI, I've run au build --env prod in order to build a (what I assumed was a) production bundle.
Read more >
Chapter 16. Deploying Aurelia applications - liveBook · Manning
By bundling your Aurelia applications, you can achieve much better performance on a live website. · The Aurelia CLI helps you by creating...
Read more >
Aurelia 1.0: How to build a simple secured application - Auth0
This file contains all the information that the Aurelia CLI uses to build our project. Scroll down and you'll see a bundles section....
Read more >
How to use the aurelia-cli.CLIOptions.hasFlag function in ...
log('Finish building Aurelia plugin to dist/commonjs and dist/native-modules.'); done(); } ); let main; if (CLIOptions.hasFlag('watch')) { main = gulp.series( ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found