Open azulkipli opened 6 years ago
Hey, you can modify the config
first before passing it into criticalCssPlugin
:
const Jarvis = require("webpack-jarvis");
const critical = require("preact-cli-plugin-critical-css");
module.exports = (config, env) => {
config.plugins.push(
new Jarvis({ /*jarvis options*/ })
);
critical(config, env, { /*critical options*/ });
};
In preact.config.js I already have
Thanks