We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In preact.config.js I already have
import criticalCssPlugin from "preact-cli-plugin-critical-css"; import Jarvis from "webpack-jarvis"; /* the rest of your webpack configs */ export default (config, env) => { const options = { // Passed directly to the 'critical' module (this is optional) }; criticalCssPlugin(config, env, options); };
Thanks
The text was updated successfully, but these errors were encountered:
Hey, you can modify the config first before passing it into criticalCssPlugin:
config
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*/ }); };
Sorry, something went wrong.
No branches or pull requests
In preact.config.js I already have
Thanks
The text was updated successfully, but these errors were encountered: