Nonsense Parser Microframework

    bookmarklet-wrapper-webpack-plugin

    1.0.1 • Public • Published

    Bookmarklet Wrapper Webpack Plugin

    Wraps output file in IIFE and adds 'javascript:' prefix:

    javascript: (function() {
      // ... file content
    })();

    Works only in production mode.

    Installation

    npm install --save-dev bookmarklet-wrapper-webpack-plugin
    

    Usage

    const BookmarkletWrapperPlugin = require('bookmarklet-wrapper-webpack-plugin');
     
    module.exports = {
      // ...
     
      plugins: [new BookmarkletWrapperPlugin()]
    };

    Install

    npm i bookmarklet-wrapper-webpack-plugin

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    1.54 kB

    Total Files

    3

    Last publish

    Collaborators

    • ivanzk