Skip to content

swordcss/gulp-sword

Repository files navigation

gulp-sword

Compile SwordCSS to CSS with Gulp

Build Status Coverage Status Maintainability Percentage Total alerts Language grade: JavaScript npm version

Installation

$ npm install -D gulp-sword

Usage

const { src, dest } = require("gulp");

const sword = require("gulp-sword");

exports.css = () => {
    return src("./src/**/*.sw")
        .pipe(sword({ ...myConfigOptionsHere }))
        .pipe(dest("./dist/css"))
}