webpack-plugin-critical icon indicating copy to clipboard operation
webpack-plugin-critical copied to clipboard

Criticalcss fails on initial build

Open SharperWebDev opened this issue 7 years ago • 0 comments

So I'm using Webpack to bundle up my js and css.

I've added the Webpack-plugin-critical to output an external css file featuring critical styles. This file gets added to my (twig) template.

It works fine if I run Webpack a second time, though the initial build fails and I get an error saying it can't find the primary generated css file. How do I expose the primary css file output from ExtractTextPlugin to Webpack-plugin-critical allowing it to consume the file and produce a critical css file on initial build?

SharperWebDev avatar Oct 02 '17 13:10 SharperWebDev