You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Node Express server-based web app. It uses Pug templates to provide the views.
I now want to use Parcel in order to add functionality to those front-end views:
Compile TypeScript to JavaScript and incorporate that into my Pug-based views
Compile SASS to CSS
I'm struggling with how I should structure my project to achieve this.
Should my server code be completely separate from my client code? Should there be a separate package.json for each, and then I take the output from the client code and put that in the server's public folder to serve it?
I've been searching for an example of how to structure this, but I'm coming up blank right now...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I have a Node Express server-based web app. It uses Pug templates to provide the views.
I now want to use Parcel in order to add functionality to those front-end views:
I'm struggling with how I should structure my project to achieve this.
Should my server code be completely separate from my client code? Should there be a separate
package.json
for each, and then I take the output from the client code and put that in the server'spublic
folder to serve it?I've been searching for an example of how to structure this, but I'm coming up blank right now...
Thanks in advance.
Matt
Beta Was this translation helpful? Give feedback.
All reactions