Converts text files to modules
Clone or download
Latest commit f2dc8f7 Jun 24, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Add test with sourcemaps Jun 23, 2016
.gitignore Initial Nov 2, 2015
.travis.yml Upgrade travis Jun 11, 2016
CHANGELOG.md Return a name Jun 23, 2016
LICENSE Initial Nov 2, 2015
README.md Fix travis badge Jun 11, 2016
index.js Return a name Jun 23, 2016
package.json 2.0.2 Jun 23, 2016
rollup.config.js Simpler name dest Jun 12, 2016

README.md

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