gajus / write-file-webpack-plugin

Forces webpack-dev-server to write bundle files to the file system.
Other
527 stars 54 forks source link

webpack template CSS Files written with write-file-webpack-plugin ? #62

Open tautera opened 6 years ago

tautera commented 6 years ago

I am wondering if the write-file-webpack-plugin also writes CSS bundled files to the filesystem? I am using the webpack template with vuejs, which splits the js and css files when using the 'npm run build' command. Which works great for prod, but not so great for dev.

Because of our existing Spring MVC project, we need access to the (vuejs multi-entry project) js and css files in the .jsp files. We opted to do this, as the existing web app has too many pages to convert at once.

When running in the dev environment (npm run dev), the js available thru http://localhost:8081/entry-point-1.js, but the css is not (can't figure out the url, if there is one). So I saw the write-file-webpack-plugin and thought it may work for us, but I am unsure how to write out the bundled css files?

I've been working on this challenge for days, and have not found a solution, any help/suggestions would be greatly appreciated!