Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 375 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 375 Bytes

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"))
}