eight04/rollup-plugin-inline-js(新しいタブで開きます)
主要言語: JavaScript
Rollup with inline-js.
- star 数
- 3
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2021/02/12
主要言語: JavaScript
Rollup with inline-js.
Rollup with inline-js. This might be useful if you build the source with rollup and want to inline some static assets at build-time.
npm install -D rollup-plugin-inline-js
import inline from "rollup-plugin-inline-js"; export default { input: "entry.js", output: { file: "dist/output.js", format: "es" }, plugins: [inline()] };
This plugin would replace $inline directives in the source, just like inline-js.
The .inline.js config file works as intended.
This module exports a single function.
const plugin = createPlugin({ include?: Array<String>, exclude?: Array<String>, inlineOptions?: Object });
Create the plugin instance.
include - a list of glob patterns. The plugin would only process matched files. Default to process all files.
exclude - a list of glob patterns. The plugin would ignore matched files. Default: [].
The inlineOptions object would be passed to createInliner function.
0.5.0 (Feb 12, 2021)
0.4.0 (Jun 6, 2019)
dependencies array.0.3.0 (Aug 5, 2018)
$inline directives in the source file just like using inline-js CLI.0.2.1 (Jul 22, 2018)
0.2.0 (Jul 22, 2018)
node.js@8.x, rollup@>=0.61, inline-js-core@0.4.x.0.1.0 (Dec 28, 2017)