DEV Community

Discussion on: Adding style to Server-Side rendering and automating the build process

Collapse
 
achhapolia10 profile image
Anshuman Chhapolia

If you are using pug then use this plugin and not the html-webpack-plugin. HTML webpack plugin adds a script to an HTML like document only. It won't work with pug.
npmjs.com/package/html-webpack-pug...
I would suggest going through my posts on medium. I haven't been able to update the post here with the latest structure.
Part 1: medium.com/@achhapolia10/server-si...
Part 2: medium.com/swlh/server-side-render...
I've explained the babel and webpack configs and what is happening in detail.

Collapse
 
jeromediver profile image
Jérôme Lanteri

I understand better, i was feeling it can be something like that, but you confirm to me that's it.
Thank you very much for your answer (and so quick also). I do appreciate a lot.
I'm pretty very new on React.js and yes, i'm very entousiast to touch this and learn. I decide to not use simplicity with Next.js to understand better what's happening first.
Thank you very much @anshuman Chhapolia