On the front page, I have a "loose" CSS file (that @imports other CSS files) that I want to act as the global CSS style to load for the site. The site itself is being revamped, but it's not quite ready to do the whole module loading system, so at the moment, there's the equivalent of an index.html that the client will hit first (and under that will be module loaded components that I'll be using webpack to transpile)
I want to be able to use webpack to take that global CSS and optimize it (via PostCSS and other plugins). But looks like webpack only likes actual javascript based entry points.
What would my strategy be to tell webpack to use the global CSS as an entry point and produce an optimized and bundled CSS consisting of all the @imported CSS in that global one.
Would I have to just run something like PostCSS separately on that file? Or load PostCSS explicitly and just run it within the webpack config (if so, what's the nicest way to make that happen?).