mizziness / craft3-webpack5-tailwind2-boilerplate

A real-world boilerplate for Craft CMS 3 projects that leverages Wepback 5, Tailwind 2, PostCSS 8, and has a hot-reload dev environment. Now with dynamic imports, asynchronous chunk loading, and legacy vs modern browser support!
MIT License
45 stars 11 forks source link

webpack not generating css/js folders in dist #8

Closed Kaustix closed 2 years ago

Kaustix commented 3 years ago

Running yarn dev only emits the files manifest.json and stats.json, and not creating js/css folders nor any any assets.

// manifest.json { "app.js": "/js/app.js", "chunk-vendors.js": "/js/chunk-vendors.js", "app.js.map": "/js/app.js.map", "chunk-vendors.js.map": "/js/chunk-vendors.js.map" }

funkysoul commented 2 years ago

Hmm.. Im also experiencing the same, only when running yarn build the js/css is created. I assume a configuration issue?

mizziness commented 2 years ago

Running yarn dev does indeed not output files - this is because it's running webpack dev server in HMR mode. You will only get physical files when using yarn build.