For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/css-extract-webpack-plugin.cssextractrspackplugin.loader.md.
This is the dev preview website. Check out the document at lynx-stack.dev

Home > @lynx-js/css-extract-webpack-plugin > CssExtractRspackPlugin > loader

CssExtractRspackPlugin.loader property

The loader to extract CSS.

Signature:

static loader: string;

Remarks

It should be used with the 'css-loader'.

Example

import { CssExtractRspackPlugin } from '@lynx-js/css-extract-webpack-plugin'
export default {
  plugins: [new CssExtractRspackPlugin()],
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [CssExtractRspackPlugin.loader, 'css-loader'],
      },
    ],
  },
}