neutrino-middleware-wrapper is a Neutrino Middleware for the Webpack Wrapper Plugin.
npm install --save-dev neutrino-middleware-wrappermodule.exports = {
use: [
'neutrino-middleware-wrapper',
{
header: '(function() {',
footer: '})();'
}
]
}- Uses the Webpack Wrapper Plugin to wrap output files with custom text or code.
- Supports a
testoption to change the regex used to match output filenames. - Passes
headerandfooteroptions directly to the plugin.
