Novelty Plastic Moustache

    gulp-jspm-generator

    1.0.0 • Public • Published

    The streaming build system

    JSPM Generator Gulp Plugin

    JSPM Generator Plugin for Gulp

    Install

    npm i -D gulp-jspm-generator

    Usage

    import { task, src, dest } from "gulp";
    
    import { Generator } from "@jspm/generator";
    import importmap from "gulp-jspm-generator";
    
    const generator = new Generator({
      mapUrl: import.meta.url,
      env: ["production", "browser", "module"],
    });
    
    task("html", () => {
      return src("src/*.html")
        .pipe(importmap(generator, { esModuleShims: true }))
        .pipe(dest("dest"));
    });

    Install

    npm i gulp-jspm-generator

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.69 kB

    Total Files

    7

    Last publish

    Collaborators

    • simonmeskens