gigya / node-gigya-boilerplate

Boilerplate Node.js App using the Gigya accountJS Raas service
2 stars 1 forks source link

views do not exist on prod build #2

Closed maxmckenzie closed 3 years ago

maxmckenzie commented 7 years ago

Error: Failed to lookup view "pages/index" in views directory "/Users/maxmckenzie/Development/gigya/node-gigya-boilerplate/dist/views"

due to the organisation of the view directory inside of the src folder npm run build and npm start does not pick up the templates. This could be solved by moving it to root. But i don't really want to do that.

I would prefer that it stayed there, used es6 along with the assets directory then using something like webpack to built it all out to the dist folder.

maxmckenzie commented 7 years ago

"build": "babel src -d dist && mkdir -p dist/views && cp -a src/views/. dist/views/.",

the above code has been added that copies the view directory over to the dist folder. However windows wil not be able to use this command currently