{"_id":"banner-webpack-plugin","_rev":"8-1bce763933aa03aa9e8f6831809ab397","name":"banner-webpack-plugin","description":"append content before or after js bundle","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"banner-webpack-plugin","version":"0.1.0","description":"append content before or after js bundle","keywords":["front-end","web","webpack","plugin","building tool"],"homepage":"https://github.com/lcxfs1991/banner-webpack-plugin","bugs":{"url":"https://github.com/lcxfs1991/banner-webpack-plugin/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/lcxfs1991/banner-webpack-plugin.git"},"author":{"name":"heyli"},"files":["index.js"],"scripts":{},"dependencies":{},"devDependencies":{},"license":"MIT","engines":{"node":">=4.0.0","npm":">=3.0.0"},"gitHead":"f8df9a4b203aed71b0eb21cf6cdf2af4cd730bd1","_id":"banner-webpack-plugin@0.1.0","_shasum":"6a6ae0158ea97a57b88df2f746ab4a9e35c21bd9","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"6a6ae0158ea97a57b88df2f746ab4a9e35c21bd9","tarball":"https://registry.npmjs.org/banner-webpack-plugin/-/banner-webpack-plugin-0.1.0.tgz","integrity":"sha512-tg3bBhciGfKJH3Iczt/FKQEO+VYW6Mcpn9QnF66Vh2TG8dJ0IWLsyIRjTbYRQ+hBW36p6amR1rZMAaYdgvzxvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYBD4E/sO8SjCkwHQz0RTjvnTi8mA+U6h5RpWOLSVmUgIhALiz1eIifeUtdlaJRC9Siipo0sUFvF9XRxRgty4fKj5W"}]},"maintainers":[{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/banner-webpack-plugin-0.1.0.tgz_1467732568432_0.18660479155369103"}},"0.1.1":{"name":"banner-webpack-plugin","version":"0.1.1","description":"append content before or after js bundle","keywords":["front-end","web","webpack","plugin","building tool"],"homepage":"https://github.com/lcxfs1991/banner-webpack-plugin","bugs":{"url":"https://github.com/lcxfs1991/banner-webpack-plugin/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/lcxfs1991/banner-webpack-plugin.git"},"author":{"name":"heyli"},"files":["index.js"],"scripts":{},"dependencies":{},"devDependencies":{},"license":"MIT","engines":{"node":">=4.0.0","npm":">=3.0.0"},"gitHead":"9849fc8d30b623881821effd799db83836b18d50","_id":"banner-webpack-plugin@0.1.1","_shasum":"7704accb54810e75c3c6cfb5240c5aa307263d7f","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"7704accb54810e75c3c6cfb5240c5aa307263d7f","tarball":"https://registry.npmjs.org/banner-webpack-plugin/-/banner-webpack-plugin-0.1.1.tgz","integrity":"sha512-dp2e2F0+8sSkeiTWXuHkxDFZFAjX4cnNU0kmQWoPNkAgCOE1MWF8HYloCkMBnjlHwWYPbeFHzijQzC+I5cFuiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkFtS4pefrI8C0a+KrCisN0+d+k7MSUcaRRLAE3RYjdQIhAI3Tpxl38nEsjXhNEfPFzzAeBkvVgDGlomM9t0kTfaXE"}]},"maintainers":[{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/banner-webpack-plugin-0.1.1.tgz_1467732809774_0.10466641234233975"}},"0.1.2":{"name":"banner-webpack-plugin","version":"0.1.2","description":"append content before or after js bundle","keywords":["front-end","web","webpack","plugin","building tool"],"homepage":"https://github.com/lcxfs1991/banner-webpack-plugin","bugs":{"url":"https://github.com/lcxfs1991/banner-webpack-plugin/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/lcxfs1991/banner-webpack-plugin.git"},"author":{"name":"heyli"},"files":["index.js"],"scripts":{},"dependencies":{},"devDependencies":{},"license":"MIT","engines":{"node":">=4.0.0","npm":">=3.0.0"},"gitHead":"a2faee3cffa6766850eb00d1f1d9b264b45ad2a7","_id":"banner-webpack-plugin@0.1.2","_shasum":"b06d5c21336771dffb5c0c1e30090adc7879b802","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"b06d5c21336771dffb5c0c1e30090adc7879b802","tarball":"https://registry.npmjs.org/banner-webpack-plugin/-/banner-webpack-plugin-0.1.2.tgz","integrity":"sha512-m8vy8svUisteLc6gvCI//wz6LN06SJoR6JdNnEff5uFejXaBv9iMSm1FTPf4dOArFLeKnb9ISx9fj95C0E9usg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBAviw8Ge8j62zmkhyxaJYPCDMmvyPnxG6LWKZCZEGHGAiEAuKDOnfWXak4koC1Oc/FIHWwNh2lmQ3K1Yxedz26nd54="}]},"maintainers":[{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/banner-webpack-plugin-0.1.2.tgz_1467733045752_0.011414070148020983"}},"0.1.3":{"name":"banner-webpack-plugin","version":"0.1.3","description":"append content before or after js bundle","keywords":["front-end","web","webpack","plugin","building tool"],"homepage":"https://github.com/lcxfs1991/banner-webpack-plugin","bugs":{"url":"https://github.com/lcxfs1991/banner-webpack-plugin/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/lcxfs1991/banner-webpack-plugin.git"},"author":{"name":"heyli"},"files":["index.js"],"scripts":{},"dependencies":{},"devDependencies":{},"license":"MIT","engines":{"node":">=4.0.0","npm":">=3.0.0"},"gitHead":"c20276087ef1ff7101f32c48a90c5951b3780aa1","_id":"banner-webpack-plugin@0.1.3","_shasum":"9ab06cd96113a6be0fdc3393e07fcf39fab6b5b1","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"9ab06cd96113a6be0fdc3393e07fcf39fab6b5b1","tarball":"https://registry.npmjs.org/banner-webpack-plugin/-/banner-webpack-plugin-0.1.3.tgz","integrity":"sha512-rv4CP7gzQkcYikf3V2vRj0StjZULDX22cwGyZXT7zOXLh8F+5Xb0aEQoKXn65FZGJSM+xqUWlq0FIy4yFoJAUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKeDUkFxfT9Vqrms0jqza1AizArT8MVrsm4BzSHnfltwIhAL7brIOV6Pby3wSvsJUh5bwJslSl5BwHNcc2HvG2uaP8"}]},"maintainers":[{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/banner-webpack-plugin-0.1.3.tgz_1467746198842_0.5022809461224824"}},"0.2.3":{"name":"banner-webpack-plugin","version":"0.2.3","description":"append content before or after js bundle","keywords":["front-end","web","webpack","plugin","building tool"],"homepage":"https://github.com/lcxfs1991/banner-webpack-plugin","bugs":{"url":"https://github.com/lcxfs1991/banner-webpack-plugin/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/lcxfs1991/banner-webpack-plugin.git"},"author":{"name":"heyli"},"files":["index.js"],"scripts":{},"dependencies":{},"devDependencies":{},"license":"MIT","engines":{"node":">=4.0.0","npm":">=3.0.0"},"gitHead":"fc25db992e7f02ec0e0b949f56c3006bf456d423","_id":"banner-webpack-plugin@0.2.3","_shasum":"e9dee9d9644ccef1fd970e11d82408aff42290eb","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.3.1","_npmUser":{"name":"sethjmoore","email":"seth@sethjmoore.com"},"dist":{"shasum":"e9dee9d9644ccef1fd970e11d82408aff42290eb","tarball":"https://registry.npmjs.org/banner-webpack-plugin/-/banner-webpack-plugin-0.2.3.tgz","integrity":"sha512-ixXfB9nmsDKidoFnM9mbXleZ6mveajZRgxIsl4xPLcWjLohia6cxlbzh9STWwVQBDRIUvD/pW4UTNIED9IUSQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBGeA6mPGouUN39xeI5EfYe9xCamYgqZyqhExFQP4IU9AiA0h1loT+W8tTK0yEy8urDz6LJXd8/cgobCdaJLg9qOTA=="}]},"maintainers":[{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},{"name":"sethjmoore","email":"seth@sethjmoore.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/banner-webpack-plugin-0.2.3.tgz_1488036185297_0.26391273410990834"}}},"readme":"# banner-webpack-plugin\n\n### Introduction\n\nappend content before or after js bundle\n\n\n### Usage\nif entry key in webpack config is like this:\n```\nentry: {\n    \"libs/react\": [path.join(config.path.src, \"/libs/react.js\")],\n    \"libs/react-dom\": [path.join(config.path.src, \"/libs/react-dom.js\")],\n},\n```\n\nthen, please use the same key for chunks in banner-webpack-plugin\n\n\n```\nnew BannerWebpackPlugin({\n    chunks: {\n        'libs/react': {\n            beforeContent: 'var React = ',              \n            afterContent: ');/**heyman*/',              \n            removeBefore: \"!\",                           \n            removeAfter: \"\\\\);\"\n        },\n        'libs/react-dom': {\n            beforeContent: 'var ReactDOM = ',\n            afterContent: ');/**heyman*/',\n            removeBefore: \"!\",\n            removeAfter: \"\\\\);\"\n        }\n    }\n})\n```\n\n### Defailt of ```chunks``` key\n```\n* beforeContent\n    - [String] \n    - append content before\n* afterContent\n    - [String] \n    - append content after\n* removeBefore\n    - [String] \n    - replace content before, this string will input in a Regex Object\n* removeAfter\n    - [String]\n    - replace content after, this string will input in a Regex Object\n\n```\n\n### Result\n```\nvar React = /******/ function(modules) { // webpackBootstrap\n\t/** some code here */\n/******/ }); /** heyman */;\n```\n","maintainers":[{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},{"name":"sethjmoore","email":"seth@sethjmoore.com"}],"time":{"modified":"2022-06-13T04:15:01.237Z","created":"2016-07-05T15:29:30.588Z","0.1.0":"2016-07-05T15:29:30.588Z","0.1.1":"2016-07-05T15:33:30.354Z","0.1.2":"2016-07-05T15:37:29.279Z","0.1.3":"2016-07-05T19:16:39.465Z","0.2.3":"2017-02-25T15:23:07.258Z"},"homepage":"https://github.com/lcxfs1991/banner-webpack-plugin","keywords":["front-end","web","webpack","plugin","building tool"],"repository":{"type":"git","url":"git+ssh://git@github.com/lcxfs1991/banner-webpack-plugin.git"},"author":{"name":"heyli"},"bugs":{"url":"https://github.com/lcxfs1991/banner-webpack-plugin/issues"},"license":"MIT","readmeFilename":"README.md"}