bab392fb87 | ||
---|---|---|
.vscode | ||
.yarn | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.npmignore | ||
.nvmrc | ||
.prettierignore | ||
.yarnrc.yml | ||
README.md | ||
index.js | ||
package.json | ||
prettier.config.js | ||
yarn.lock |
README.md
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,
},
},
],
},
],
};