Using the Aurelia CLI, I've run au build --env prod
in order to build a (what I assumed was a) production bundle.
I think copied index.html
and the scripts
folder into a web server.
However, I'm recieving the following exception when hitting the web server from the browser:
vendor-bundle.js:formatted:3912 GET http://ip_address/node_modules/aurelia-templating-resources/dist/amd/aurelia-templating-resources.js 404 (Not Found)
Why does the Aurelia-CLI's bundle still look for files in node_modules
from the vendor-bundle.js
? Isn't the idea that the bundle contains all the necessary files for deployment?
Here is my aurelia.json
In this case, aurelia-templating-resources
isn't listed in your vendor-bundle
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With