How to use parcel.js with hugo static site generator
i have website in hugo, i want to use parcel.js please provide guideline ?
| Software | Version(s) |
| ---------------- | ---------- |
| Hugo | https://gohugo.io/ - v0.42.2 |
What is it exactly you want to accomplish?
Hugo is an excellent tool by default and doesn't really require another build tool like parcel.
actually hugo is not compress multiple css files in one, or any js file, i want to build ci on top of hugo after hugo build, i also want to remove, unwanted css & js code using tree shacking algorithm, that's why i have placed this question, and thank you for your response
For development:
parcel serve public/*.html in another terminal. For production:
parcel build public/*.htmlHugo uses the public folder for outputting files. The posts are exported as html files
i have tried but not working
Server running at http://localhost:1234
๐จ Cannot find module '/Users/tapan/Desktop/new_theme/demo.gitlab.io/index.html' from '/Users/tapan/Desktop/new_theme/demo.gitlab.io'
at Resolver.resolve (/usr/local/lib/node_modules/parcel-bundler/src/Resolver.js:70:17)
at <anonymous>
And with ./public/*.html?
same error i got @KeineLimonade
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.
Most helpful comment
actually
hugois not compress multiple css files in one, or any js file, i want to build ci on top ofhugoafter hugo build, i also want to remove, unwanted css & js code using tree shacking algorithm, that's why i have placed this question, and thank you for your response