This repository has been archived on 2026-01-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2024-05-29 01:08:23 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:08:23 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00
2024-05-29 01:01:14 +04:00

lightningcss-loader

Lightning CSS loader for Webpack

Usage

import { transform } from 'lightningcss';

return {
    ...,
    rules: [
        {
            test: /\.css$/,
            use: [
                {
                    loader: '@advdominion/lightningcss-loader',
                    options: {
                        implementation: transform,
                    },
                },
            ],
        },
    ],
};

Passing options to Lightning CSS

import { transform } from 'lightningcss';

return {
    ...,
    rules: [
        {
            test: /\.css$/,
            use: [
                {
                    loader: '@advdominion/lightningcss-loader',
                    options: {
                        implementation: transform,
                        drafts: {
                            customMedia: true,
                        },
                        minify: false,
                    },
                },
            ],
        },
    ],
};
S
Description
No description provided
Readme
1.1 MiB
0 Stars 3 Watchers 0 Forks
Languages
JavaScript 100%