Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building a Production Bundle from Aurelia-CLI

Tags:

aurelia

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

like image 767
Fedoranimus Avatar asked Oct 29 '22 21:10

Fedoranimus


1 Answers

Make sure you install and bundle the correct libs

In this case, aurelia-templating-resources isn't listed in your vendor-bundle.

like image 132
Matthew James Davis Avatar answered Nov 12 '22 20:11

Matthew James Davis