@advdominion/lightningcss-loader
v1.0.0
Published
[Lightning CSS](https://lightningcss.dev) loader for [Webpack](https://webpack.js.org)
Downloads
5
Readme
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,
},
},
],
},
],
};