shunter
shunter copied to clipboard
compile.js fails if public/resources & resources/js is empty
compile.js
fails if public/resources
& resources/js
is empty.
All the user gets is an unhelpful Caught exception: TypeError: Cannot convert undefined or null to object
with no line number.
I hit this setting up a new project without doing the Getting Started Guide first, and running compile for the first time...
Hey @jpw, if I want to have an empty public/resources and resources/js because all our assets are coming from a module, what should I do?
I must be missing something, but I can't get it to process any resources from my module
This is the current project I'm trying to get working for production: https://github.com/ukparliament/augustus
I worked it out - I had to run:
./node_modules/.bin/shunter-build -r pugin-components
Is this documented somewhere that I missed?
Is this documented somewhere that I missed?
I don't think so, the only relevant docu I think is over here
What is also not clear is, if you are not using Shunter's built-in asset handling at all, one does not need to run shunter-build
/compile
as this only compiles assets, not templates.