Need private packages and team management tools?Check out npm Teams »

rollup-plugin-string

3.0.0 • Public • Published

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

Install

npm i rollup-plugin-string

DownloadsWeekly Downloads

9,030

Version

3.0.0

License

MIT

Unpacked Size

3.31 kB

Total Files

6

Last publish

Collaborators

  • avatar