rollup-plugin-string
Converts text files to modules
Last updated 9 months ago by trysound .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-string 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (9 months ago)

6 Versions

  • 3.0.0                                ...           9 months ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2016 © taobao.org |