Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Converts text files to modules

License

NotificationsYou must be signed in to change notification settings

TrySound/rollup-plugin-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Converts text files to modules:

importtplfrom"./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 specifiedinclude:"**/*.html",// Undefined by defaultexclude:["**/index.html"]})]});

License

MIT ©Bogdan Chadkin

About

Converts text files to modules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp