rollup-plugin-bookmark

0.0.5 • Public • Published

rollup-plugin-bookmark

Rollup plugin to bundle js as bookmark.

Installation

npm install --save-dev rollup-plugin-bookmark

Usage

import { rollup } from 'rollup';
import bookmark from 'rollup-plugin-bookmark';

rollup({
    entry : 'main.js',
    plugins : [
        bookmark(),
    ],
}).then(( bundle ) => {
    bundle.write({
        format : 'iife',
        dest : 'dist.js',
    });
});
  • Or
import bookmark from 'rollup-plugin-bookmark';

export default {
    format : 'iife',
    dest : 'dist.js',
    entry : './src/index.js',
    plugins : [
        bookmark(),
    ],
};

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-bookmark

Weekly Downloads

6

Version

0.0.5

License

MIT

Last publish

Collaborators

  • lixinliang