3.1.1 • Published 3 years ago

@backrunner/rollup-plugin-string v3.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

rollup-plugin-string Build Status

Converts text files to modules:

import tpl from "./tpl.html";
console.log(`Template for render: ${tpl}`);

Installation

npm i rollup-plugin-string -D

Usage

import { rollup } from "rollup";
import { string } from "rollup-plugin-string";

rollup({
  entry: "main.js",
  plugins: [
    string({
      // Required to be specified
      include: "**/*.html",

      // Undefined by default
      exclude: ["**/index.html"]
    })
  ]
});

License

MIT © Bogdan Chadkin

3.1.1

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago