Skip to content

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

@azulkipli

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

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