gulp-lightningcss
v1.0.0
Published
Gulp plugin to use Lightning CSS
Downloads
343
Readme
gulp-lightningcss
Gulp plugin for Lightning CSS.
Install
$ npm install gulp-lightningcss
Example
const gulp = require("gulp");
const sourcemaps = require("gulp-sourcemaps");
const lightningcss = require("gulp-lightningcss");
const options = {
minify: true, // Default
sourceMap: true, // Default
};
gulp
.src("stylesheet.css")
.pipe(sourcemaps.init())
.pipe(lightningcss(options))
.pipe(sourcemaps.write(""))
.pipe(gulp.dest("build"));
- See https://lightningcss.dev/docs.html for more options
- See https://github.com/gulp-sourcemaps/gulp-sourcemaps for advance usage of sourcemaps