Skip to content

How to use it with preact-cli preact.config.js ? #132

Description

@azulkipli

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions