Bookmarklet Wrapper Webpack Plugin
Wraps output file in IIFE and adds 'javascript:' prefix:
javascript: { // ... file content};
Works only in production mode.
Installation
npm install --save-dev bookmarklet-wrapper-webpack-plugin
Usage
const BookmarkletWrapperPlugin = ; moduleexports = // ... plugins: ;