Static GitHub Issues

[3339] How to minify external css file - nuxt static

prev: i cant use this
next: [next] Nuxt with AmCharts 4

I have a single main.css file that that my pages may or may not use, but I want it injected for every generation regardless. I am currently using a seperate webpack process to minify the single main.css file which gets outputted to the static directory. Next when I generate all my pages, the css file will get copied to the final dist directory.

I am hardcoding the link tag and its href in the nuxt config so that all my pages will be pointing it.

My question is if its possible to not use a seperate webpack process and somehow integrate this minification process with nuxt. Any assistance woudl be greately appreciated. Thank you.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c7072">#c7072</a>)</em></sub></div>