Skip to content

SimonMeskens/gulp-jspm-generator

Repository files navigation

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

About

JSPM Generator Plugin for Gulp

Resources

License

Stars

Watchers

Forks

Packages

No packages published