lin7sh / gulp-jsx-mini

gulp jsx plugin with no extra dependencies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-jsx-mini

gulp jsx plugin with no extra dependencies

Example:

transform jsx file in jsx folder to js file in js folder

const jsxPlugin = require("gulp-jsx-mini")

function jsx() {
    return src("jsx/*.jsx")
        .pipe(jsxPlugin())
        .pipe(renamePlugin((path)=> {
            path.extname = ".js"
        }))
        .pipe(dest("js"))
}

About

gulp jsx plugin with no extra dependencies


Languages

Language:JavaScript 100.0%