1.0.2 • Published 3 months ago

split-css-rspack-plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

split-css-rspack-plugin

Install

npm i --save-dev split-css-rspack-plugin

Features

  • Use postcss to split css file
  • Parse css in various files besides html
  • Multiple configuration options
  • Use purgecss clean css

Usage

import { defineConfig } from "@rsbuild/core";
import { pluginReact } from "@rsbuild/plugin-react";
import { SplitCssPlugin } from "split-css-rspack-plugin";

export default defineConfig({
  plugins: [pluginReact()],
  tools: {
    rspack: {
      plugins: [new SplitCssPlugin({ cssFileNum: 5 })],
    },
  },
});
1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago