一覧へ戻る
TrySound/rollup-plugin-string(新しいタブで開きます)
主要言語: JavaScript
Converts text files to modules
- star 数
- 88
- watcher 数
- 1
- fork 数
- 13
- issue 数
- 11
- 最終更新
- 2022/12/03
主要言語: JavaScript
Converts text files to modules
Converts text files to modules:
import tpl from "./tpl.html"; console.log(`Template for render: ${tpl}`);
npm i rollup-plugin-string -D
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"] }) ] });
MIT © Bogdan Chadkin