neutrino-middleware-wrapper
is a Neutrino Middleware for the Webpack Wrapper Plugin.
Get Started
npm install --save-dev neutrino-middleware-wrapper
moduleexports = use: 'neutrino-middleware-wrapper' header: '(function() {' footer: '})();'
Features
- Uses the Webpack Wrapper Plugin wrap output files with custom text or code.
- Supports a
test
option to change the regex used to match output filenames. - Passes
header
andfooter
options directly to the plugin.