{"_id":"@mcler/webpack-concat-plugin","_rev":"13-9df5e10bdbe0a041ba3bb33a0ee7532f","name":"@mcler/webpack-concat-plugin","dist-tags":{"latest":"4.1.6","next":"4.1.5","alpha":"5.0.0-alpha7"},"versions":{"4.1.3":{"name":"@mcler/webpack-concat-plugin","version":"4.1.3","author":{"name":"mcler"},"description":"Webpack file concatenation.","license":"ISC","main":"./release.js","scripts":{"test":"npm run test:clean; jest","test:watch":"npm run test:clean; jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","test:clean":"rm -rf test/__snapshots__; rm -rf test/js","build":"babel index.js --out-file release.js"},"dependencies":{"globby":"^8.0.1","schema-utils":"^3.0.0","upath":"^2.0.1"},"devDependencies":{"@babel/cli":"^7.13.14","@babel/core":"^7.13.14","@babel/preset-env":"^7.13.12","@babel/runtime":"^7.13.10","babel-jest":"^26.6.3","core-js":"^3.9.1","is-object":"^1.0.1","jest":"^26.6.3"},"peerDependencies":{"html-webpack-plugin":"^5.3.1","webpack":"^5.12.0","webpack-sources":"^2.2.0"},"engines":{"node":">= 14"},"homepage":"https://github.com/mcler/webpack-concat-plugin","repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"jest":{"testEnvironment":"node"},"directories":{"test":"test"},"keywords":["webpack","concat","legacy"],"gitHead":"12064055e25e2ad91750c2cce50000dcb5a62790","_id":"@mcler/webpack-concat-plugin@4.1.3","_nodeVersion":"15.14.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-usy0VPy7afO58etf4Ln7RXH09USOfd6H5DaXiXqvDOuFuCIacpLcuBDJpjxgEatA8F12ht886Yd5xZwKki/dkQ==","shasum":"f6c9753ef4901cc735df7b11b22c42c75337d6c9","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-4.1.3.tgz","fileCount":7,"unpackedSize":32002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggVKNCRA9TVsSAnZWagAAZBIQAJXbyy2bxAX9RU2IzsDE\nptXA2C0J3sw33m8pMldpNccH5l9ECkHvG8nl1+Ge8HBMhPRVKdD0oL5MhVd6\nZc64gTXAJEIJLQbStDIEuPcem/XNQuBtKmIe0JDXeHpd5HmpdlBGT3JkojdA\nnICvfrbbd1L8gVQ3m8TkR/kC7ttSMyBRg6lAH0Jr5sOkSTsQUa4dai0LIvsN\nYoyNG0KgnnuFHbSWe57hSkqaK4neSNXQLwAzZO/OID2kZZzauNJDDBJURCZ8\ngmxLMdT8jcj24bgCWds4JSbDFYswZk4HgLcAfE2rVsZivIJGcgonxwZ9FnVV\nEpp6dyYd+jsD3/Oalhu0MA9VJcVyrpzwRbdA9KSSXsvKhn2IyRnJJGzKkKpV\nSGljAlJwjBPpOG3IwN4/EIWrSFAlKbsDZ4qEzO4CRbdfmQVQpfKj0MBs4pUP\npTZEX5n5KpUMgpCaOagINzNbONLDBEXjuYGXnMEC/bA5aw+Ccy7CVWbcBaL8\nKy2zIGsH31PaL3kh9Z2ORGOGO3Qwlc4ii8WFCu3JA31a3YC0FWTYc1t4ZY9C\nQoUiZEOPoCCuo+pICaAtU6LS/TtNiFilaOkE3jzmDwpwXOkO5ubsiNKjya1B\nr++8SSYWy9a5JNNsKN1UE9BUNtG9SNQ8CI6HvlpsoepoeWMdSta4DK+WBUsM\nhN6N\r\n=4uVT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRpczDoD51ppBCUzLtsRfECgc1BL8+MlH7g5k34WKxwAIhAPd38aqxHMZaHQKrtYQN1vmH5fiX/JxXr1F7QEXC3m/p"}]},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_4.1.3_1619088012896_0.42506826569528466"},"_hasShrinkwrap":false},"4.1.4":{"name":"@mcler/webpack-concat-plugin","version":"4.1.4","author":{"name":"mcler"},"description":"Webpack file concatenation.","license":"ISC","main":"./release.js","scripts":{"build":"babel index.js --out-file release.js","test":"npm run test:clean; jest","test:watch":"npm run test:clean; jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","test:clean":"rm -rf test/__snapshots__; rm -rf test/js"},"dependencies":{"globby":"^8.0.1","schema-utils":"^3.0.0","upath":"^2.0.1"},"devDependencies":{"@babel/cli":"^7.13.14","@babel/core":"^7.13.14","@babel/preset-env":"^7.13.12","@babel/runtime":"^7.13.10","babel-jest":"^27.2.3","core-js":"^3.9.1","is-object":"^1.0.1","jest":"^27.2.3"},"peerDependencies":{"html-webpack-plugin":"^5.3.1","webpack":"^5.12.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 14"},"homepage":"https://github.com/mcler/webpack-concat-plugin","repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"jest":{"testEnvironment":"node"},"directories":{"test":"test"},"keywords":["webpack","concat","legacy"],"gitHead":"a29b4a637aa50745e5f255040437b4ac69cddee0","_id":"@mcler/webpack-concat-plugin@4.1.4","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-V95hkU2eqXpyvIWUIvsmf+/CvlH1+FSkES/RXuEGG/KDQDL0HIqVdTEzPDHCI8P0KMJsj7DxH3HQ+755cNu7tg==","shasum":"b838d4120f2ef3052a775e6b00997a720b72109d","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-4.1.4.tgz","fileCount":7,"unpackedSize":32994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2Q91CRA9TVsSAnZWagAABkMQAJ+a6The48mWCTU8VLep\nQChxlzJChH317r+rRHAR7+NLn+0EYxLLFSoG9LUW1oBezLGGGVk5cIMxFqGt\nipEyg0gZRRH79L/VSz8K9RWn19a2mbfRPxoEigg4ugNhMw6KawGN7z7R1AVp\nVNBOR5kf2XwUgusMdWShSoHMbcztlF2o2Krtg2kd5BCUyz1tzL2aJJav0PbK\nsAGMMCzGPbQEGscivUOwg2FtmL4idlqPC5s+AhAXoUcB7XBJaFmuLE8q8jOx\ndw5/zIhgC+zgtmtlIar4f4vLMhXvmnLPBOjqOX7JxzoYThi5ckJDQ3Mq1Clu\ngROvr+6XGdtN02NSIXw+cRVnAlT1k15kYBUZ3Pqt2MHcjzgaMOGeHFBChmM4\nFqfpT9tV/CzfeA9YnSlvwHwCqRsM/GMAd5I5d1PxeMrlvhrSbyRnrW8mHUU0\nBbgLOEIoruZCwBY6rUMc3KATPRP+iKBkROSZZh4UIqhCFnTnWPvMYwFwIlWS\nSLur020tBBJTjluhNbdyYfpuNufuZS030kEDWu8sBHTrsafd9BwJD8dF8Q7V\noii04YTsORXCLsADZ3reYBG8ytDC9J6m28dfS2JchOWpdhQE9gotIpkh9qGG\njIRtlnkXqWIJXbhtXQrKst64i9fcnCj7PJCPGdATTOec44S3Lh5UFtAGdY7h\nZq/F\r\n=UPyc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8Psoa4GRSNix7WPCTNqobAcSTSy6ycD0hZY8gAbr/FQIhAMUmv2out4vnmM/KSeViIep/2B3jiNcTEjux/7QLnFrM"}]},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_4.1.4_1632836340679_0.09183458084872953"},"_hasShrinkwrap":false},"4.1.5":{"name":"@mcler/webpack-concat-plugin","version":"4.1.5","author":{"name":"mcler"},"description":"Webpack file concatenation.","license":"ISC","main":"./release.js","scripts":{"build":"babel index.js --out-file release.js","publish:latest":"npm run build && npm publish --access public --tag latest","publish:next":"npm run build && npm publish --access public --tag next","test":"npm run test:clean; jest","test:watch":"npm run test:clean; jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","test:clean":"rm -rf test/__snapshots__; rm -rf test/js"},"dependencies":{"globby":"^8.0.1","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"@babel/cli":"^7.13.14","@babel/core":"^7.13.14","@babel/preset-env":"^7.13.12","@babel/runtime":"^7.13.10","babel-jest":"^27.2.3","core-js":"^3.9.1","is-object":"^1.0.1","jest":"^27.2.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 14"},"homepage":"https://github.com/mcler/webpack-concat-plugin","repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"jest":{"testEnvironment":"node"},"directories":{"test":"test"},"keywords":["webpack","concat","legacy"],"gitHead":"f4f306bdce6654ee7dafd90556da32fb41181215","_id":"@mcler/webpack-concat-plugin@4.1.5","_nodeVersion":"16.14.0","_npmVersion":"8.5.2","dist":{"integrity":"sha512-DU2pbr8zQD63G6vnt9Ya1DTNDmYRbxLbrHqwlODUi9E/pExzqUE98xqCVkyQDl89om6UC9Q5lV5ApiD6lKW5Wg==","shasum":"bff47fb0ccbc59e2e98e84026eff32dd95f3e6f1","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-4.1.5.tgz","fileCount":7,"unpackedSize":33362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHSk2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLEQ/8COjxB8Dsju4R9/Kh2bz47TyBRonPWSPmiMWo2yGJeL3AQiZO\r\n8OzPMwjiqaIHVVnHY73A1w2vewr2KhVwjJTAf187e+xYoPtil2AXtTPsooTh\r\npPVpXRzs1rZt8kXNSHTl60wUOaLMV5Q+2bh8NYes3PFeyfGSumvnCUZaUq5E\r\nCrg+OvWGDYlJNnVGeSgXOeseQUON6fx1MWJda4HQKaoGtsRolRF4NRrfTLSD\r\nCzehFAXLZf6XtShlWpkbgwlTb3Nc+dBho0c+0dMY5rRHPxcGjNZX2KIAbA8a\r\nu3dT77+80vt7JCfOxCUGVb5cmT1rLldAam50PRqVf32MGoT//lTNsgrIJpgv\r\nXga6o8988oTOjS3CvD34PNE9aUQ2d9joqR0xRjWvj57Rs8r8SumL1SyhcyHG\r\n4B+LT01FLkAyZd7STjQrzvuG9kayjGO9oNbnBYwnGAFr5mds+EWvHVoAKNsj\r\n+YGEnQddkdOWz/WASi1CeJdhKd05nBzNSMfD7SJM/3T+06BP3Oh38IYSfkMc\r\nzVcV7pFl9BXQKi3jokgme7IohElTHYDGH6CEMhFA9vXTultLXgbCMU/9/V8Y\r\nx9FS2LMOzPwU4nr05IMJkA3XG8dyjlLFMqg0CPPrnls7Qll6RI7/LhfInPcz\r\nk+32o4Jdrf4IDKubnywslLxf8Zv9zZfDigI=\r\n=pzLb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQaiunKsGc+x1qTA10QCuBWacn0W/4zQjw9Jh9jwLT6AiEAi93TZMM5CMCpoKVR9Z0Xx8tmd/29Gw+oRKiwKoDyWOE="}]},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_4.1.5_1646078262604_0.29437405714402765"},"_hasShrinkwrap":false},"5.0.0-alpha1":{"name":"@mcler/webpack-concat-plugin","version":"5.0.0-alpha1","description":"Webpack file concatenation.","keywords":["webpack","concat","legacy"],"homepage":"https://github.com/mcler/webpack-concat-plugin","bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"license":"ISC","author":{"name":"mcler"},"sideEffects":false,"exports":{".":{"import":"./index.mjs","require":"./index.js"}},"directories":{"lib":"lib","test":"test"},"scripts":{"build":"rm -rf ./dist/* && node esbuild.config.js && cp package.json dist && cp *.md dist","lint":"eslint lib","publish:alpha":"npm run build && cd dist && npm publish --access public --tag alpha","publish:latest":"npm run build && cd dist && npm publish --access public --tag latest","publish:next":"npm run build && cd dist && npm publish --access public --tag next","publish:promote-next":"npm dist-tag add @mcler/webpack-concat-plugin@$(npm dist-tag ls @mcler/webpack-concat-plugin | grep next | sed 's/next\\: //g') latest","test":"npm run test:clean; npm run test:create-sourcemaps; jest","test:clean":"rm -rf test/__snapshots__; rm -rf test/js","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","test:create-sourcemaps":"esbuild test/fixtures/sourcemaps/source.js --sourcemap=linked --outfile=test/fixtures/sourcemaps/linked.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=external --outfile=test/fixtures/sourcemaps/external.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=inline --outfile=test/fixtures/sourcemaps/inline.js","test:watch":"npm run test:clean; jest --watch"},"dependencies":{"globby":"^8.0.1","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"esbuild":"^0.14.26","esbuild-jest":"^0.5.0","eslint":"^8.11.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.25.4","eslint-plugin-jest":"^26.1.1","eslint-plugin-promise":"^6.0.0","is-object":"^1.0.1","jest":"^27.2.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 10"},"readme":"# @mcler/webpack-concat-plugin\n\n[![npm package](https://img.shields.io/npm/v/@mcler/webpack-concat-plugin.svg)](https://www.npmjs.org/package/@mcler/webpack-concat-plugin)\n\nA plugin to concat static JavaScript files and (optionally) inject into HTML without Webpack’ `JSONP` code wrapper. A perfect solution for bundling legacy code.\n\nIt delivers:\n\n- Concatination of files\n- Source maps\n- Minification\n- Support for `webpack@5` and `html-webpack-plugin@5`\n- Inject to HTML (via [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin))\n\n> Only Webpack 5 is supported\n\n> Forked from [hxlniada’s plugin](https://github.com/hxlniada/webpack-concat-plugin) – supports Webpack 4\n\n## Install\n\n```\nnpm install @mcler/webpack-concat-plugin --save-dev\n```\n\n```\nyarn add @mcler/webpack-concat-plugin --dev\n```\n\n## Use\n\n```jsx\nconst ConcatPlugin = require('@mcler/webpack-concat-plugin');\nnew ConcatPlugin({\n  name: 'result',\n  outputPath: 'path/to/output/',\n  fileName: '[name].[hash:8].js',\n  filesToConcat: [\n    'jquery',\n    './src/lib/**',\n    './dep/dep.js',\n    [\n      './some/**',\n      '!./some/excludes/**'\n    ]\n  ],\n  attributes: {\n    async: true\n  }\n});\n```\n\n## Minification and Source maps\n\nKey difference of this plugin from [original version](https://github.com/hxlniada/webpack-concat-plugin) is use of Webpack mechanisms for minification and creating source maps.\n\n### `webpack.config.js` mode option\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  mode: 'production'\n};\n```\n\n### `webpack.config.js` detailed configuration\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  optimization: {\n    minimize: true,\n    minimizer: new TerserPlugin(), // or anything you like\n  },\n  devtool: 'source-map'\n};\n```\n\n## Options\n\n### `name`\n\n`string = \"result\"`\n\nOutput chunk name.\n\n### `publicPath`\n\n`string | false = webpack.publicPath`\n\nPublic path to asset. If `publicPath` is set to `false`, then `relativePath` will be used. `publicPath` will affect script tags:\n\n```jsx\n<script src=\"{publicPath}/{fileName}\" />\n```\n\n### `outputPath`\n\n`string = \"\"`\n\nOutput directory of the file.\n\n### `fileName`\n\n`string = \"[name].js\"`\n\nOutput file name.\n\n### `filesToConcat` *required*\n\n`string[]`\n\nArray of file paths to concat. Supported path patterns:\n\n- normal path\n- npm packages\n- [glob](https://github.com/sindresorhus/globby) patterns\n\n### `injectType`\n\n`string = \"prepend\": \"prepend\" | \"append\" | \"none\"`\n\nHow to inject script tags (only works if `html-webpack-plugin` has `inject` option set to `false`)\n\n### `attributes`\n\n`Record<string, boolean | string>`\n\nExtra attributes applied to script tag.\n\n```jsx\n{\n  async: false,\n  defer: true,\n  crossorigin: \"anonymous\"\n}\n```\n\n## Examples\n\n### Manual inject into HTML\n\n```html\n<script src=\"<%= htmlWebpackPlugin.files.webpackConcat.file %>\"></script>\n```\n","readmeFilename":"README.md","gitHead":"8e4383c1713509b07733cd896dfae7e2484d6324","_id":"@mcler/webpack-concat-plugin@5.0.0-alpha1","_nodeVersion":"16.14.0","_npmVersion":"8.5.3","dist":{"integrity":"sha512-n0EuNO1bPzuJ0OPojd/br4dWVn1d83d8WfKXNhnQhyhajIYQ1im2mwuED8jqMc/LnFhttI1LzXbTfyxE732S7Q==","shasum":"00a3ff71ec55d1541911c2ab57e25b088c35757a","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-5.0.0-alpha1.tgz","fileCount":5,"unpackedSize":36879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMN9kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnKw/8Cexgq8AlvnxsFnRoIHh/riZm+N3hqrYUcqfTE8O8FixniBSR\r\nF/s0DdCC960yFoaEeZfgiQG6p/kA/bMjGQm/xjwBimmbhF0BN/VWnY/chooU\r\nokC7b3YqbQPFmQeJcu2HrR9+KmvFIlcmFeYzmMlmXerTB/uwl3pjWjMGS/u9\r\nhIEC/lchfvoeHk0OU3Kk32vmaVoXcbI2XzyJIn0f4/hPBQ/q3zPz4EZx5ML0\r\nfyhHcIODvAKsuZqJ7bhJ+OR74B0Mqg/vU2mXTZnRHU2ceMHXOfZYFrzXfYFU\r\nCko1jc01dzsClGeMMEyBtbJSBIePzxNoH7fOtjmhbJ8n+X4dGNuViyWIgLj6\r\nrNSy9hBpQ0VvMjxXH+aIGovFP2oPD2/YHdRVS8Zj/o2S5drnLkWuM17IutWa\r\n55vX4aBEj7uiMpWw7gGQqadsnhdOy+Bp/jLFZDKgcXUaglma8Rjk7n8CLSQ5\r\n8idxQovW7VB2ZEBS+k1yVFO3MPqw0YtIKkiYoPfOOLSSrO776XcgRF1KALjM\r\nNq/clSeqqNjoXCyaTwivo/JQpJyOFI3nvA0z23jJnUYAhzkgRJTez/22Y3GJ\r\nc1efdL1zhv0MlIXn9MRzR9xkyMbUL+Il/9ur22fRuwg92thgTFAVrTQ7EMvP\r\njHRNj6/7NSj3CjkMF3KMwLsWf+JsO/7cpf8=\r\n=PsVr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBYV+ExZABnUgYJa/s/p7rX5PnTwqRugbm+JtYTAJAuwIhAPVSU8q35/LqCheU+Gl/0RGAgYWSMZgI0TJJr8CE7B2x"}]},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_5.0.0-alpha1_1647370084409_0.7001269663464345"},"_hasShrinkwrap":false},"5.0.0-alpha2":{"name":"@mcler/webpack-concat-plugin","version":"5.0.0-alpha2","description":"Webpack file concatenation.","keywords":["webpack","concat","legacy"],"homepage":"https://github.com/mcler/webpack-concat-plugin","bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"license":"ISC","author":{"name":"mcler"},"sideEffects":false,"exports":{".":{"import":"./index.mjs","require":"./index.js"}},"directories":{"lib":"lib","test":"test"},"scripts":{"build":"rm -rf ./dist/* && node esbuild.config.js && cp package.json dist && cp *.md dist","lint":"eslint lib","publish:alpha":"npm run build && cd dist && npm publish --access public --tag alpha","publish:latest":"npm run build && cd dist && npm publish --access public --tag latest","publish:next":"npm run build && cd dist && npm publish --access public --tag next","publish:promote-next":"npm dist-tag add @mcler/webpack-concat-plugin@$(npm dist-tag ls @mcler/webpack-concat-plugin | grep next | sed 's/next\\: //g') latest","test":"npm run test:clean; npm run test:create-sourcemaps; jest","test:clean":"rm -rf test/__snapshots__; rm -rf test/js","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","test:create-sourcemaps":"esbuild test/fixtures/sourcemaps/source.js --sourcemap=linked --outfile=test/fixtures/sourcemaps/linked.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=external --outfile=test/fixtures/sourcemaps/external.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=inline --outfile=test/fixtures/sourcemaps/inline.js","test:watch":"npm run test:clean; jest --watch"},"dependencies":{"globby":"^8.0.1","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"esbuild":"^0.14.26","esbuild-jest":"^0.5.0","eslint":"^8.11.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.25.4","eslint-plugin-jest":"^26.1.1","eslint-plugin-promise":"^6.0.0","is-object":"^1.0.1","jest":"^27.2.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 10"},"readme":"# @mcler/webpack-concat-plugin\n\n[![npm package](https://img.shields.io/npm/v/@mcler/webpack-concat-plugin.svg)](https://www.npmjs.org/package/@mcler/webpack-concat-plugin)\n\nA plugin to concat static JavaScript files and (optionally) inject into HTML without Webpack’ `JSONP` code wrapper. A perfect solution for bundling legacy code.\n\nIt delivers:\n\n- Concatination of files\n- Source maps\n- Minification\n- Support for `webpack@5` and `html-webpack-plugin@5`\n- Inject to HTML (via [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin))\n\n> Only Webpack 5 is supported\n\n> Forked from [hxlniada’s plugin](https://github.com/hxlniada/webpack-concat-plugin) – supports Webpack 4\n\n## Install\n\n```\nnpm install @mcler/webpack-concat-plugin --save-dev\n```\n\n```\nyarn add @mcler/webpack-concat-plugin --dev\n```\n\n## Use\n\n```jsx\nconst ConcatPlugin = require('@mcler/webpack-concat-plugin');\nnew ConcatPlugin({\n  name: 'result',\n  outputPath: 'path/to/output/',\n  fileName: '[name].[hash:8].js',\n  filesToConcat: [\n    'jquery',\n    './src/lib/**',\n    './dep/dep.js',\n    [\n      './some/**',\n      '!./some/excludes/**'\n    ]\n  ],\n  attributes: {\n    async: true\n  }\n});\n```\n\n## Minification and Source maps\n\nKey difference of this plugin from [original version](https://github.com/hxlniada/webpack-concat-plugin) is use of Webpack mechanisms for minification and creating source maps.\n\n### `webpack.config.js` mode option\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  mode: 'production'\n};\n```\n\n### `webpack.config.js` detailed configuration\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  optimization: {\n    minimize: true,\n    minimizer: new TerserPlugin(), // or anything you like\n  },\n  devtool: 'source-map'\n};\n```\n\n## Options\n\n### `name`\n\n`string = \"result\"`\n\nOutput chunk name.\n\n### `publicPath`\n\n`string | false = webpack.publicPath`\n\nPublic path to asset. If `publicPath` is set to `false`, then `relativePath` will be used. `publicPath` will affect script tags:\n\n```jsx\n<script src=\"{publicPath}/{fileName}\" />\n```\n\n### `outputPath`\n\n`string = \"\"`\n\nOutput directory of the file.\n\n### `fileName`\n\n`string = \"[name].js\"`\n\nOutput file name.\n\n### `filesToConcat` *required*\n\n`string[]`\n\nArray of file paths to concat. Supported path patterns:\n\n- normal path\n- npm packages\n- [glob](https://github.com/sindresorhus/globby) patterns\n\n### `injectType`\n\n`string = \"prepend\": \"prepend\" | \"append\" | \"none\"`\n\nHow to inject script tags (only works if `html-webpack-plugin` has `inject` option set to `false`)\n\n### `attributes`\n\n`Record<string, boolean | string>`\n\nExtra attributes applied to script tag.\n\n```jsx\n{\n  async: false,\n  defer: true,\n  crossorigin: \"anonymous\"\n}\n```\n\n## Examples\n\n### Manual inject into HTML\n\n```html\n<script src=\"<%= htmlWebpackPlugin.files.webpackConcat.file %>\"></script>\n```\n","readmeFilename":"README.md","gitHead":"8e4383c1713509b07733cd896dfae7e2484d6324","_id":"@mcler/webpack-concat-plugin@5.0.0-alpha2","_nodeVersion":"16.14.0","_npmVersion":"8.5.3","dist":{"integrity":"sha512-09c6BzHJSnP5sLe+RybccFRH2KjTkGaKVlLJUagK4bVcKk+BscoJ2XKJr5NMK4nvWEWD2hgH8epCVR+VqOwFug==","shasum":"66c30e2b3d4b2118eb446320dc9a59ce1fd69e81","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-5.0.0-alpha2.tgz","fileCount":5,"unpackedSize":38067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMRvsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPDxAAmaYStoLzDh4oQKzD0mgG+B2AZ+KaPYZbxEKXP3GU/psnDG2V\r\n/CxjiHchyYB16EZXXWKq3JDeXR7imcEffeKgXClMEeKXD5yVPVzzvHbE5+2e\r\nZrom92xvv9HdKT9aOwo1nocovd7/GcI4nwRTWNgUQkym61wYCcIpGxhz0sj4\r\nRYjqla9xihcyGo4MknTrt9meDxsQJfhLQEnfYLEXIBxDnzU2nX7Hv4f3bL8/\r\neRWvgHb4FUIATH5jG2b1lotMu4i61sWY2yEpC3ht6rGhrK4CShTkvFisiPpo\r\nWTzHS+vfvWhrCzuCZ9bo4jeGkfnThKLxJTJ+61EaBlf1M7EoSYwKJS3bcs2B\r\np7cnyV1BTkObE+ndUwVlDjWpb6FPwGc01cV7AeIvwVhkiBui/wUX/rGKCwZU\r\no7jNWZFtQduDwId/Qw17yMArT4gYYWHfbzx6rQdNAoZlQodPG20e74Uul8IO\r\nHoIbqSD3F3Yr7mXT1vtvqfDW4RIVkrghp/gvQeEwa+y3g0bAHmBYUyQ9doaQ\r\ntgclVhDAQqv8Cqb424I7bQlzKQhuJqxl+ulORb/c5NNfSZs1xov44UMIrz9Z\r\nt0zNcu1lSNfUVpmbzo6qjfUI+uvV0VVFpCIcQSWJ+8ExYMcTCNr8t0sMtoon\r\nlnUOKlw5IaiAoMIvcZWwMfxwP0ju4DlYdrM=\r\n=UHyi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/oMjsvPKIwnOVh28iOq+ZV+5dMrxaG3Mn7U6VhUxShQIgOfF6msYo4PW/vXzw1mEeiwhzE2i3LS8pMSrKgZMOzuU="}]},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_5.0.0-alpha2_1647385580184_0.5875334999566084"},"_hasShrinkwrap":false},"5.0.0-alpha3":{"name":"@mcler/webpack-concat-plugin","version":"5.0.0-alpha3","description":"Webpack file concatenation.","keywords":["webpack","concat","legacy"],"homepage":"https://github.com/mcler/webpack-concat-plugin","bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"license":"ISC","author":{"name":"mcler"},"sideEffects":false,"exports":{".":{"import":"./index.mjs","require":"./index.js"}},"directories":{"lib":"lib","test":"test"},"scripts":{"build":"rm -rf ./dist/* && node esbuild.config.js && cp package.json dist && cp *.md dist","lint":"eslint lib","publish:alpha":"npm run build && cd dist && npm publish --access public --tag alpha","publish:latest":"npm run build && cd dist && npm publish --access public --tag latest","publish:next":"npm run build && cd dist && npm publish --access public --tag next","publish:promote-next":"npm dist-tag add @mcler/webpack-concat-plugin@$(npm dist-tag ls @mcler/webpack-concat-plugin | grep next | sed 's/next\\: //g') latest","test":"npm run test:clean; npm run test:create-sourcemaps; jest","test:clean":"rm -rf test/__snapshots__; rm -rf test/js","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","test:create-sourcemaps":"esbuild test/fixtures/sourcemaps/source.js --sourcemap=linked --outfile=test/fixtures/sourcemaps/linked.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=external --outfile=test/fixtures/sourcemaps/external.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=inline --outfile=test/fixtures/sourcemaps/inline.js","test:watch":"npm run test:clean; jest --watch"},"dependencies":{"globby":"^13.1.1","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"esbuild":"^0.14.26","esbuild-jest":"^0.5.0","eslint":"^8.11.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.25.4","eslint-plugin-jest":"^26.1.1","eslint-plugin-promise":"^6.0.0","is-object":"^1.0.1","jest":"^27.2.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 10"},"readme":"# @mcler/webpack-concat-plugin\n\n[![npm package](https://img.shields.io/npm/v/@mcler/webpack-concat-plugin.svg)](https://www.npmjs.org/package/@mcler/webpack-concat-plugin)\n\nA plugin to concat static JavaScript files and (optionally) inject into HTML without Webpack’ `JSONP` code wrapper. A perfect solution for bundling legacy code.\n\nIt delivers:\n\n- Concatination of files\n- Source maps\n- Minification\n- Support for `webpack@5` and `html-webpack-plugin@5`\n- Inject to HTML (via [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin))\n\n> Only Webpack 5 is supported\n\n> Forked from [hxlniada’s plugin](https://github.com/hxlniada/webpack-concat-plugin) – supports Webpack 4\n\n## Install\n\n```\nnpm install @mcler/webpack-concat-plugin --save-dev\n```\n\n```\nyarn add @mcler/webpack-concat-plugin --dev\n```\n\n## Use\n\n```jsx\nconst ConcatPlugin = require('@mcler/webpack-concat-plugin');\nnew ConcatPlugin({\n  name: 'result',\n  outputPath: 'path/to/output/',\n  fileName: '[name].[hash:8].js',\n  filesToConcat: [\n    'jquery',\n    './src/lib/**',\n    './dep/dep.js',\n    [\n      './some/**',\n      '!./some/excludes/**'\n    ]\n  ],\n  attributes: {\n    async: true\n  }\n});\n```\n\n## Minification and Source maps\n\nKey difference of this plugin from [original version](https://github.com/hxlniada/webpack-concat-plugin) is use of Webpack mechanisms for minification and creating source maps.\n\n### `webpack.config.js` mode option\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  mode: 'production'\n};\n```\n\n### `webpack.config.js` detailed configuration\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  optimization: {\n    minimize: true,\n    minimizer: new TerserPlugin(), // or anything you like\n  },\n  devtool: 'source-map'\n};\n```\n\n## Options\n\n### `name`\n\n`string = \"result\"`\n\nOutput chunk name.\n\n### `publicPath`\n\n`string | false = webpack.publicPath`\n\nPublic path to asset. If `publicPath` is set to `false`, then `relativePath` will be used. `publicPath` will affect script tags:\n\n```jsx\n<script src=\"{publicPath}/{fileName}\" />\n```\n\n### `outputPath`\n\n`string = \"\"`\n\nOutput directory of the file.\n\n### `fileName`\n\n`string = \"[name].js\"`\n\nOutput file name.\n\n### `filesToConcat` *required*\n\n`string[]`\n\nArray of file paths to concat. Supported path patterns:\n\n- normal path\n- npm packages\n- [glob](https://github.com/sindresorhus/globby) patterns\n\n### `injectType`\n\n`string = \"prepend\": \"prepend\" | \"append\" | \"none\"`\n\nHow to inject script tags (only works if `html-webpack-plugin` has `inject` option set to `false`)\n\n### `attributes`\n\n`Record<string, boolean | string>`\n\nExtra attributes applied to script tag.\n\n```jsx\n{\n  async: false,\n  defer: true,\n  crossorigin: \"anonymous\"\n}\n```\n\n## Examples\n\n### Manual inject into HTML\n\n```html\n<script src=\"<%= htmlWebpackPlugin.files.webpackConcat.file %>\"></script>\n```\n","readmeFilename":"README.md","gitHead":"0d3cbe34e25d1e38f613b667ba094fcaedf2487d","_id":"@mcler/webpack-concat-plugin@5.0.0-alpha3","_nodeVersion":"16.14.2","_npmVersion":"8.5.5","dist":{"integrity":"sha512-CA3pymsdUJATJuhxVSPjUTmFH3d9xIFLimnooBYyi9gyT3hb1OBQxZnyCFfBQQ6uWf39JzOvC3rBgcTHFqmZ2Q==","shasum":"72624865962b155b150639113784d945f5286903","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-5.0.0-alpha3.tgz","fileCount":5,"unpackedSize":22008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPhjCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLDQ//RF9D6NjktjefyFP9hc88W97+fb5j3HAd7jsSvPxvjhm6Lze1\r\nO+QEQGci/rRQqVxw2tenE9UZvZCLOgPBteqRr7yYuXuXe69S8CCxxCe8T1QE\r\nPwEM8LxN1NunryKpJzun49Kl0xtanMfG7wgA+uVj5IIk9SG47BLfLvZ9kcXg\r\n2IGh3CHhVi3c0MmW5+m9bZ15n55jI5as+W+dZI61bC6HEF51d0xJ1muqlnCV\r\nPgBgmgbLqut0NQTExNfZjyimEbAbZtT5UiyJdTRA/XjhwOoWV/MJt1r8/I/h\r\n7yRkc+bnSaKeXvhDWth6O4tWrzwTCydLbaGKTfEF61/n3Kxz0wIsfgDE4tJW\r\nLe9ez7K5HrX1+9hVB0EaKsjv2lu/NLilg0FTq6ji5TEtmyBrsW+TivxSK5fC\r\nPoUrQHoiVdE8XakqviWC15WtwfHZtoILVow8pcHFVK9krR/q3rcK0cTa9fWT\r\nS/WxQRsc9Mv3nl/RuB8l1ETBja744ZHGVQXjeVw+AdPdMBoKRxevqua26VH3\r\n7n7noPb/nBRpStvTGm9jq8kjvu8ScaEXVwa9kGMz6MZ5V5He0cDZ8l6OpL3f\r\nTC6ToqFWHCI3OB1a2bksV/RF5DtLeh9kRZ8X/11EGvlgpy+ruDANqXJD/1tb\r\notzV2CvOFmL2zjKCzxCaL+aNxL9Z5ozTDoE=\r\n=dhJG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjE4/m9P0eH6epmRWexS67ocVy9fzBwYrgJC3BmRiqlwIgFsOEOWacf/q+W1HZyB5jdDtQpTgcslRV9BHIPpfLUyM="}]},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_5.0.0-alpha3_1648236738636_0.17669634279522461"},"_hasShrinkwrap":false},"5.0.0-alpha4":{"name":"@mcler/webpack-concat-plugin","version":"5.0.0-alpha4","description":"Webpack file concatenation.","keywords":["webpack","concat","legacy"],"homepage":"https://github.com/mcler/webpack-concat-plugin","bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"license":"ISC","author":{"name":"mcler"},"sideEffects":false,"exports":{".":{"require":"./index.js","import":"./index.mjs","types":"./index.d.ts"}},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","directories":{"lib":"lib","test":"test"},"scripts":{"build":"npm run build:install-peers && rm -rf ./dist/* && npm run build:rollup && cp package.json dist && cp *.md dist","build:install-peers":"npx -y npm-install-peers","build:rollup":"rollup --config","lint":"eslint lib --ext=ts","publish:alpha":"npm run build && cd dist && npm publish --access public --tag alpha","publish:latest":"npm run build && cd dist && npm publish --access public --tag latest","publish:next":"npm run build && cd dist && npm publish --access public --tag next","publish:promote-next":"npm dist-tag add @mcler/webpack-concat-plugin@$(npm dist-tag ls @mcler/webpack-concat-plugin | grep next | sed 's/next\\: //g') latest","test":"npm run test:clean; npm run test:create-sourcemaps; jest","test:clean":"rm -rf test/__snapshots__; rm -rf test/js","test:coverage":"jest --collectCoverageFrom='lib/*.ts' --coverage","test:create-sourcemaps":"esbuild test/fixtures/sourcemaps/source.js --sourcemap=linked --outfile=test/fixtures/sourcemaps/linked.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=external --outfile=test/fixtures/sourcemaps/external.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=inline --outfile=test/fixtures/sourcemaps/inline.js","test:watch":"npm run test:clean; jest --watch"},"dependencies":{"globby":"^13.1.1","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"@rollup/plugin-json":"^4.1.0","@types/node":"^17.0.23","@types/webpack-sources":"^3.2.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.26","esbuild-jest":"^0.5.0","eslint":"^8.11.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-typescript":"^3.0.0","eslint-plugin-import":"^2.25.4","eslint-plugin-jest":"^26.1.1","eslint-plugin-promise":"^6.0.0","is-object":"^1.0.1","jest":"^27.2.3","rollup":"^2.70.1","rollup-plugin-esbuild":"^4.8.2","rollup-plugin-typescript2":"^0.31.2","typescript":"^4.6.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","source-map":"^0.7.3","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 10"},"readme":"# @mcler/webpack-concat-plugin\n\n[![npm package](https://img.shields.io/npm/v/@mcler/webpack-concat-plugin.svg)](https://www.npmjs.org/package/@mcler/webpack-concat-plugin)\n\nA plugin to concat static JavaScript files and (optionally) inject into HTML without Webpack’ `JSONP` code wrapper. A perfect solution for bundling legacy code.\n\nIt delivers:\n\n- Concatination of files\n- Source maps\n- Minification\n- Support for `webpack@5` and `html-webpack-plugin@5`\n- Inject to HTML (via [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin))\n\n> Only Webpack 5 is supported\n\n> Forked from [hxlniada’s plugin](https://github.com/hxlniada/webpack-concat-plugin) – supports Webpack 4\n\n## Install\n\n```\nnpm install @mcler/webpack-concat-plugin --save-dev\n```\n\n```\nyarn add @mcler/webpack-concat-plugin --dev\n```\n\n## Use\n\n```jsx\nconst ConcatPlugin = require('@mcler/webpack-concat-plugin');\nnew ConcatPlugin({\n  name: 'result',\n  outputPath: 'path/to/output/',\n  fileName: '[name].[hash:8].js',\n  filesToConcat: [\n    'jquery',\n    './src/lib/**',\n    './dep/dep.js',\n    [\n      './some/**',\n      '!./some/excludes/**'\n    ]\n  ],\n  attributes: {\n    async: true\n  }\n});\n```\n\n## Minification and Source maps\n\nKey difference of this plugin from [original version](https://github.com/hxlniada/webpack-concat-plugin) is use of Webpack mechanisms for minification and creating source maps.\n\n### `webpack.config.js` mode option\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  mode: 'production'\n};\n```\n\n### `webpack.config.js` detailed configuration\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  optimization: {\n    minimize: true,\n    minimizer: new TerserPlugin(), // or anything you like\n  },\n  devtool: 'source-map'\n};\n```\n\n## Options\n\n### `name`\n\n`string = \"result\"`\n\nOutput chunk name.\n\n### `publicPath`\n\n`string | false = webpack.publicPath`\n\nPublic path to asset. If `publicPath` is set to `false`, then `relativePath` will be used. `publicPath` will affect script tags:\n\n```jsx\n<script src=\"{publicPath}/{fileName}\" />\n```\n\n### `outputPath`\n\n`string = \"\"`\n\nOutput directory of the file.\n\n### `fileName`\n\n`string = \"[name].js\"`\n\nOutput file name.\n\n### `filesToConcat` *required*\n\n`string[]`\n\nArray of file paths to concat. Supported path patterns:\n\n- normal path\n- npm packages\n- [glob](https://github.com/sindresorhus/globby) patterns\n\n### `injectType`\n\n`string = \"prepend\": \"prepend\" | \"append\" | \"none\"`\n\nHow to inject script tags (only works if `html-webpack-plugin` has `inject` option set to `false`)\n\n### `attributes`\n\n`Record<string, boolean | string>`\n\nExtra attributes applied to script tag.\n\n```jsx\n{\n  async: false,\n  defer: true,\n  crossorigin: \"anonymous\"\n}\n```\n\n## Examples\n\n### Manual inject into HTML\n\n```html\n<script src=\"<%= htmlWebpackPlugin.files.webpackConcat.file %>\"></script>\n```\n","readmeFilename":"README.md","gitHead":"0d3cbe34e25d1e38f613b667ba094fcaedf2487d","_id":"@mcler/webpack-concat-plugin@5.0.0-alpha4","_nodeVersion":"16.14.2","_npmVersion":"8.5.5","dist":{"integrity":"sha512-2DKm2YfioM1jsJ/Kzt/0oMI4Ir7Ylb+2lT9knFGIDuT7y5MJoOhXqsMZzG1pMSrP/htOM+rrUvfXhXIyyj/gKw==","shasum":"a5aec7e802528680ba31af9d831409a32da17679","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-5.0.0-alpha4.tgz","fileCount":8,"unpackedSize":39148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDk30c2/xxUDvXsrGEZH/iofBxktBXLRjtk16bfuC7ChAiA+aCReN/lVzUhT0O/3ZgvnG05V7ZLYNYFZCQjntngNKA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiS5XCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5mxAAm8fEnVeIGrEG+ewAv5IdZTkU70xNcKNLpOrmDB+yZp6Wy1R/\r\nIEIaCj3IhY9aLIkmuohsb/ioOHtsJ7YivkWqF0RqV6LrRAtzbUUBwurkiWUg\r\nVu/j4gwOY7vuxKAZrmHqGRa66AYerdoEkzC0g1h9QAQtQZN3kuVbDg9bdMSl\r\nRCsvOeZ0tMagb01c3wsd6UWpQY7cqqyymBYFygj3rnZupH10HPly7sFazf4F\r\nlKgBWtZ73qVk/09s1a6SjaBjhtY/3QNoNaMeQe6gOWYCmp4zBKfiZrrBu71h\r\nY5d4xeHdRKmDwcpvRRShD08y3UmAjSCqEOD1DmYdFKKQUodtrUpzm0wKqbG4\r\n8HWULPEbyLYrYCdK/faBuu7G8zduc7jT3k2DvPU/OEZtEh13erFjmGDvC9jP\r\n1RYPMpl5GCh9SJhzjo1LcNqB9WZ+a7bNEmglKXvdhklumW2wKsErOEqnAA/t\r\n1S4EaaTtbOro5lyQCenCYw/VO1FXulR5aqOuZz/PMknqpPSmwlS+5h6WXeMs\r\nxdooaGe6X6fjoBLSf7MChkbz24vC+unBPH+KU7hl6uTFNWttmqmaZD39kiZB\r\nz4TuRynzctuA8Fwu0I7IcSjetPlh16rK6KW7wHI8/QeRT7zjYe8BsP3xqqUq\r\n52LmIjI295hy/7aoIKS2HvqJFkkYHaXg2M0=\r\n=YwVv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_5.0.0-alpha4_1649120706520_0.16152166467846452"},"_hasShrinkwrap":false},"5.0.0-alpha5":{"name":"@mcler/webpack-concat-plugin","version":"5.0.0-alpha5","description":"Webpack file concatenation.","keywords":["webpack","concat","legacy"],"homepage":"https://github.com/mcler/webpack-concat-plugin","bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"license":"ISC","author":{"name":"mcler"},"sideEffects":false,"exports":{".":{"require":"./index.js","import":"./index.mjs","types":"./index.d.ts"}},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","directories":{"lib":"lib","test":"test"},"scripts":{"build":"npm run build:install-peers && rm -rf ./dist/* && npm run build:rollup && cp package.json dist && cp *.md dist","build:install-peers":"npx -y install-peer","build:rollup":"rollup --config","lint":"eslint lib --ext=ts","publish:alpha":"npm run build && cd dist && npm publish --access public --tag alpha","publish:latest":"npm run build && cd dist && npm publish --access public --tag latest","publish:next":"npm run build && cd dist && npm publish --access public --tag next","publish:promote-next":"npm dist-tag add @mcler/webpack-concat-plugin@$(npm dist-tag ls @mcler/webpack-concat-plugin | grep next | sed 's/next\\: //g') latest","test":"npm run test:clean; npm run test:create-sourcemaps; jest","test:clean":"rm -rf test/__snapshots__; rm -rf test/js","test:coverage":"jest --collectCoverageFrom='lib/*.ts' --coverage","test:create-sourcemaps":"esbuild test/fixtures/sourcemaps/source.js --sourcemap=linked --outfile=test/fixtures/sourcemaps/linked.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=external --outfile=test/fixtures/sourcemaps/external.js; esbuild test/fixtures/sourcemaps/source.js --sourcemap=inline --outfile=test/fixtures/sourcemaps/inline.js","test:watch":"npm run test:clean; jest --watch"},"dependencies":{"dir-glob":"^3.0.1","fast-glob":"^3.2.11","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"@rollup/plugin-json":"^4.1.0","@types/node":"^17.0.23","@types/webpack-sources":"^3.2.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.26","esbuild-jest":"^0.5.0","eslint":"^8.11.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-typescript":"^3.0.0","eslint-plugin-import":"^2.25.4","eslint-plugin-jest":"^26.1.1","eslint-plugin-promise":"^6.0.0","is-object":"^1.0.1","jest":"^27.2.3","rollup":"^2.70.1","rollup-plugin-esbuild":"^4.8.2","rollup-plugin-typescript2":"^0.31.2","typescript":"^4.6.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","source-map":"^0.7.3","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 10"},"readme":"# @mcler/webpack-concat-plugin\n\n[![npm package](https://img.shields.io/npm/v/@mcler/webpack-concat-plugin.svg)](https://www.npmjs.org/package/@mcler/webpack-concat-plugin)\n\nA plugin to concat static JavaScript files and (optionally) inject into HTML without Webpack’ `JSONP` code wrapper. A perfect solution for bundling legacy code.\n\nIt delivers:\n\n- Concatination of files\n- Source maps\n- Minification\n- Support for `webpack@5` and `html-webpack-plugin@5`\n- Inject to HTML (via [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin))\n\n> Only Webpack 5 is supported\n\n> Forked from [hxlniada’s plugin](https://github.com/hxlniada/webpack-concat-plugin) – supports Webpack 4\n\n## Install\n\n```\nnpm install @mcler/webpack-concat-plugin --save-dev\n```\n\n```\nyarn add @mcler/webpack-concat-plugin --dev\n```\n\n## Use\n\n```jsx\nconst ConcatPlugin = require('@mcler/webpack-concat-plugin');\nnew ConcatPlugin({\n  name: 'result',\n  outputPath: 'path/to/output/',\n  fileName: '[name].[hash:8].js',\n  filesToConcat: [\n    'jquery',\n    './src/lib/**',\n    './dep/dep.js',\n    [\n      './some/**',\n      '!./some/excludes/**'\n    ]\n  ],\n  attributes: {\n    async: true\n  }\n});\n```\n\n## Minification and Source maps\n\nKey difference of this plugin from [original version](https://github.com/hxlniada/webpack-concat-plugin) is use of Webpack mechanisms for minification and creating source maps.\n\n### `webpack.config.js` mode option\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  mode: 'production'\n};\n```\n\n### `webpack.config.js` detailed configuration\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  optimization: {\n    minimize: true,\n    minimizer: new TerserPlugin(), // or anything you like\n  },\n  devtool: 'source-map'\n};\n```\n\n## Options\n\n### `name`\n\n`string = \"result\"`\n\nOutput chunk name.\n\n### `publicPath`\n\n`string | false = webpack.publicPath`\n\nPublic path to asset. If `publicPath` is set to `false`, then `relativePath` will be used. `publicPath` will affect script tags:\n\n```jsx\n<script src=\"{publicPath}/{fileName}\" />\n```\n\n### `outputPath`\n\n`string = \"\"`\n\nOutput directory of the file.\n\n### `fileName`\n\n`string = \"[name].js\"`\n\nOutput file name.\n\n### `filesToConcat` *required*\n\n`string[]`\n\nArray of file paths to concat. Supported path patterns:\n\n- normal path\n- npm packages\n- [fast-glob](https://github.com/mrmlnc/fast-glob) patterns\n\n### `injectType`\n\n`string = \"prepend\": \"prepend\" | \"append\" | \"none\"`\n\nHow to inject script tags (only works if `html-webpack-plugin` has `inject` option set to `false`)\n\n### `attributes`\n\n`Record<string, boolean | string>`\n\nExtra attributes applied to script tag.\n\n```jsx\n{\n  async: false,\n  defer: true,\n  crossorigin: \"anonymous\"\n}\n```\n\n## Examples\n\n### Manual inject into HTML\n\n```html\n<script src=\"<%= htmlWebpackPlugin.files.webpackConcat.file %>\"></script>\n```\n","readmeFilename":"README.md","gitHead":"0d3cbe34e25d1e38f613b667ba094fcaedf2487d","_id":"@mcler/webpack-concat-plugin@5.0.0-alpha5","_nodeVersion":"16.14.2","_npmVersion":"8.5.5","dist":{"integrity":"sha512-O8c1mWt5rhw6+i8VX5RgH1F3STcJAIQh/BisQyi6OX/VgZcO5AD/eX+KI2K+Wa4ULqJzGWGwyhJINk/QTruiQw==","shasum":"58dbdba6212f1ef618b9c641137ccc44d0937792","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-5.0.0-alpha5.tgz","fileCount":8,"unpackedSize":39577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4sOGXJSukgbVuKpb3yLXHF+X1tuBzqaG9wPRNqC7XNAiAGVR1dwrt8CvTGt3OCTnTa73Lz7jsx6UnBETYW0mCc4w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTDC9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqtyg/9EEwEyvXCz2FGRF7B0jist8vP7Pp5kh+c/VtJJn1iE8hdOeVW\r\nJxHQ1T3KvNJjhKlZMolkk1BSelXen4qHTuJSfpZyGJEPJtfGGi9AlOkrwSVb\r\nOwBg838SjyUvdJBA99/+U/uamTkGuYhO63NnR5Y/VpYeaeyT+0b0fS/uhYHH\r\noKQbXdnC+eGsdCCoTG2bES7i5nnD9SMRAOiLyaxz5Ch4Y4q20xMSuE+XS9zH\r\nNhPzIs94fw4Ku14dukZ5hWUdoxs0A3IIRa+6P/eaEsE8EZAKeIfNsDGgAJEj\r\nAgzzdzyAaxvl2p2/Pf5ps1mv7riswefPGZd4OQdNfoJKi5anQ5hIcBHN1XFa\r\n25N2MSdJKvaFZ9DROv+cJKh+u8Hf9XCotRHPxkw9DiLZUszNovEeQRgwGxGh\r\nzeUBUl0LDvaF79UUSXtxDb/2qzE/MIDx3LwaRk4+uweLxqvB2M+0PFZqdPb5\r\ng5iUPAxEwj2eKYSlHlIXuS9SPhq2khrSQeSq0d7P31RcRJaFO+aDqclV4MBP\r\nGy8BwZ9dBlstoREJYxeBVRBh0kylL2EvGsLs2gDbbkUA98v80rWurWGztWd3\r\nAwExPvlffsxu+Af9wsmKbdFw5gP1iK48YTQd4JdgwX8h/fNbnKIdDnEJ/2+1\r\nNVmjvjKGDHk4FHNf/bZ1Jg5reb6fo3rT5PQ=\r\n=APjS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_5.0.0-alpha5_1649160381303_0.08094014208423483"},"_hasShrinkwrap":false},"5.0.0-alpha6":{"name":"@mcler/webpack-concat-plugin","version":"5.0.0-alpha6","description":"Webpack file concatenation.","keywords":["webpack","concat","legacy"],"homepage":"https://github.com/mcler/webpack-concat-plugin","bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"license":"ISC","author":{"name":"mcler"},"sideEffects":false,"exports":{".":{"require":"./index.js","import":"./index.mjs","types":"./index.d.ts"}},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","directories":{"lib":"lib","test":"test"},"scripts":{"build":"npm run build:install-peers && rm -rf ./dist/* && npm run build:rollup && cp package.json dist && cp *.md dist","build:install-peers":"npx -y install-peer","build:rollup":"rollup --config","lint":"eslint lib --ext=ts","publish:alpha":"npm run build && cd dist && npm publish --access public --tag alpha","publish:latest":"npm run build && cd dist && npm publish --access public --tag latest","publish:next":"npm run build && cd dist && npm publish --access public --tag next","publish:promote-next":"npm dist-tag add @mcler/webpack-concat-plugin@$(npm dist-tag ls @mcler/webpack-concat-plugin | grep next | sed 's/next\\: //g') latest","test":"jest","test:prepare":"npm run test:clean ; npm run test:create-sourcemaps","test:clean":"rm -rf test/__snapshots__ ; rm -rf test/js","test:coverage":"jest --collectCoverageFrom='lib/*.ts' --coverage","test:create-sourcemaps":"esbuild test/fixtures-sourcemaps/source.js --sourcemap=linked --outfile=test/fixtures-sourcemaps/linked.js && esbuild test/fixtures-sourcemaps/source.js --sourcemap=external --outfile=test/fixtures-sourcemaps/external.js && esbuild test/fixtures-sourcemaps/source.js --sourcemap=inline --outfile=test/fixtures-sourcemaps/inline.js","test:create-sourcemaps-win":"esbuild test\\fixtures-sourcemaps\\source.js --sourcemap=linked --outfile=test\\fixtures-sourcemaps\\linked.js; esbuild test\\fixtures-sourcemaps\\source.js --sourcemap=external --outfile=test\\fixtures-sourcemaps\\external.js; esbuild test/fixtures-sourcemaps/source.js --sourcemap=inline --outfile=test/fixtures-sourcemaps/inline.js","test:watch":"npm run test:clean; jest --watch"},"dependencies":{"dir-glob":"^3.0.1","fast-glob":"^3.2.11","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"@rollup/plugin-json":"^4.1.0","@types/node":"^17.0.23","@types/webpack-sources":"^3.2.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.26","esbuild-jest":"^0.5.0","eslint":"^8.11.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-typescript":"^3.0.0","eslint-plugin-import":"^2.25.4","eslint-plugin-jest":"^26.1.1","eslint-plugin-promise":"^6.0.0","is-object":"^1.0.1","jest":"^27.2.3","rollup":"^2.70.1","rollup-plugin-esbuild":"^4.8.2","rollup-plugin-typescript2":"^0.31.2","typescript":"^4.6.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","source-map":"^0.7.3","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 10"},"readme":"# @mcler/webpack-concat-plugin\n\n[![npm package](https://img.shields.io/npm/v/@mcler/webpack-concat-plugin.svg)](https://www.npmjs.org/package/@mcler/webpack-concat-plugin)\n\nA plugin to concat static JavaScript files and (optionally) inject into HTML without Webpack’ `JSONP` code wrapper. A perfect solution for bundling legacy code.\n\nIt delivers:\n\n- Concatination of files\n- Source maps\n- Minification\n- Support for `webpack@5` and `html-webpack-plugin@5`\n- Inject to HTML (via [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin))\n\n> Only Webpack 5 is supported\n\n> Forked from [hxlniada’s plugin](https://github.com/hxlniada/webpack-concat-plugin) – supports Webpack 4\n\n## Install\n\n```\nnpm install @mcler/webpack-concat-plugin --save-dev\n```\n\n```\nyarn add @mcler/webpack-concat-plugin --dev\n```\n\n## Use\n\n```jsx\nconst ConcatPlugin = require('@mcler/webpack-concat-plugin');\nnew ConcatPlugin({\n  name: 'result',\n  outputPath: 'path/to/output/',\n  fileName: '[name].[hash:8].js',\n  filesToConcat: [\n    'jquery',\n    './src/lib/**',\n    './dep/dep.js',\n    [\n      './some/**',\n      '!./some/excludes/**'\n    ]\n  ],\n  attributes: {\n    async: true\n  }\n});\n```\n\n## Minification and Source maps\n\nKey difference of this plugin from [original version](https://github.com/hxlniada/webpack-concat-plugin) is use of Webpack mechanisms for minification and creating source maps.\n\n### `webpack.config.js` mode option\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  mode: 'production'\n};\n```\n\n### `webpack.config.js` detailed configuration\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  optimization: {\n    minimize: true,\n    minimizer: new TerserPlugin(), // or anything you like\n  },\n  devtool: 'source-map'\n};\n```\n\n## Options\n\n### `name`\n\n`string = \"result\"`\n\nOutput chunk name.\n\n### `publicPath`\n\n`string | false = webpack.publicPath`\n\nPublic path to asset. If `publicPath` is set to `false`, then `relativePath` will be used. `publicPath` will affect script tags:\n\n```jsx\n<script src=\"{publicPath}/{fileName}\" />\n```\n\n### `outputPath`\n\n`string = \"\"`\n\nOutput directory of the file.\n\n### `fileName`\n\n`string = \"[name].js\"`\n\nOutput file name.\n\n### `filesToConcat` *required*\n\n`string[]`\n\nArray of file paths to concat. Supported path patterns:\n\n- normal path\n- npm packages\n- [fast-glob](https://github.com/mrmlnc/fast-glob) patterns\n\n### `injectType`\n\n`string = \"prepend\": \"prepend\" | \"append\" | \"none\"`\n\nHow to inject script tags (only works if `html-webpack-plugin` has `inject` option set to `false`)\n\n### `attributes`\n\n`Record<string, boolean | string>`\n\nExtra attributes applied to script tag.\n\n```jsx\n{\n  async: false,\n  defer: true,\n  crossorigin: \"anonymous\"\n}\n```\n\n## Examples\n\n### Manual inject into HTML\n\n```html\n<script src=\"<%= htmlWebpackPlugin.files.webpackConcat.file %>\"></script>\n```\n","readmeFilename":"README.md","gitHead":"0d3cbe34e25d1e38f613b667ba094fcaedf2487d","_id":"@mcler/webpack-concat-plugin@5.0.0-alpha6","_nodeVersion":"16.14.2","_npmVersion":"8.6.0","dist":{"integrity":"sha512-hVtyIMWJIgBu1Xr1Yglp8aAVHh/o78NEV+lBzl995aLgVgXAuOqQqlNr2BMdZlEDiUekawaB00ubSNYPQafEmw==","shasum":"85f5fbba57d35c7ae7c5b473e758da14b633f57f","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-5.0.0-alpha6.tgz","fileCount":8,"unpackedSize":39646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8gl7ZWPVi96ZAJi/I7KBIK0T1BaNnLonR0ayuBgrHYAIhAM2yPZKafdB44jvcMLpap/fjcSEiYoF2LrEzypbgGM+c"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTOskACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+gg/7BYq0JMwwgDperiTMadftPGv4DXimg/Unc/eTGZRCfr+lEyje\r\nOiZc2FPB36qyeeqwxenxwnkV1e0c14M4PuBCv8HstZDLrs+ALctMc+FPBtex\r\nkOWKdDj09FPLBiwwZovJhkz5RqcI63RsDf0G22vIxl9ODwQi8O35t1tz+SyK\r\ntte97amxVd+eWrvZoM+5MEGu3+oeGexbQPY6/cPfvrT6qEP2+dkMd4OmOcCS\r\nTr8luZWuoR49HcgtjQnKh6y110dlau2pBy7oeE/ABVtLSaZXaLjNkyJfNdml\r\nwUEDVzYbU5XOcGeVM1ZMeLMAso0xIDaV+tiM9t8xGzWcFMqMwhTqNkgF5mMR\r\nSs46j+BO11mUgERZyTz8Ju6gvGxwJj5VhUqJp1PN2qkhABIJ4oilxhg3jnBN\r\nzMt8uyNj47mnitAgXUofCorFO1bLDLQoXkIrSAS0EZcGuE1D2q+17Un4DgCJ\r\n2p1YsE9OeqfExkxEYRS+IoJC1iil3WFI9SXYTALZd6Kfpz/pY2CIBrAxNRNZ\r\nZCw6w8rx9wu9GaTuY1C/Lf0KoKIMv8X/jZEcB0zynlm4pyoOYEFQUeYZe3Jz\r\nOfLpjlMWXLdx8XbwGVIwHw4b8kpbshhjqVTqX+DnpUlT2+uYSU3++xKjwLBH\r\n4KeUIooNcCqwAEaIRAeSi3WPLp3qwzJfdqo=\r\n=nS59\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_5.0.0-alpha6_1649208100655_0.9138055415536472"},"_hasShrinkwrap":false},"4.1.6":{"name":"@mcler/webpack-concat-plugin","version":"4.1.6","author":{"name":"mcler"},"description":"Webpack file concatenation.","license":"ISC","main":"./release.js","scripts":{"build":"babel index.js --out-file release.js","publish:latest":"npm run build && npm publish --access public --tag latest","publish:next":"npm run build && npm publish --access public --tag next","publish:promote":"npm dist-tag add @mcler/webpack-concat-plugin@$(npm dist-tag ls @mcler/webpack-concat-plugin | grep next | sed 's/next\\: //g') latest","test":"npm run test:clean; jest","test:watch":"npm run test:clean; jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","test:clean":"rm -rf test/__snapshots__; rm -rf test/js"},"dependencies":{"globby":"^8.0.1","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"@babel/cli":"^7.13.14","@babel/core":"^7.13.14","@babel/preset-env":"^7.13.12","@babel/runtime":"^7.13.10","babel-jest":"^27.2.3","core-js":"^3.9.1","is-object":"^1.0.1","jest":"^27.2.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 14"},"homepage":"https://github.com/mcler/webpack-concat-plugin","repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"jest":{"testEnvironment":"node"},"directories":{"test":"test"},"keywords":["webpack","concat","legacy"],"_id":"@mcler/webpack-concat-plugin@4.1.6","gitHead":"3bb40e799e5b89ca0769c7168e97468fe829a2e4","_nodeVersion":"20.12.2","_npmVersion":"10.7.0","dist":{"integrity":"sha512-kwEjQGOLVpkuyh/Ho6Bw9OuSG2COFJZB5APR9eWtE32PX5Z84ZXciTfy2wy+gtpRzzcKdD1WmAvgA6bW0DhkGw==","shasum":"1035244d490eab2f61c3f541a12c33d7a5f73328","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-4.1.6.tgz","fileCount":7,"unpackedSize":33910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHANP6XF6XlbXQczvuc9HtvElNXqzKo6hPnAgSQSdVIpAiAG4EgIxl30LWx6M8C/yV8OSnQASP84sDxJqOBkZLmUWg=="}]},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_4.1.6_1715713377721_0.42241964874482085"},"_hasShrinkwrap":false},"5.0.0-alpha7":{"name":"@mcler/webpack-concat-plugin","version":"5.0.0-alpha7","description":"Webpack file concatenation.","keywords":["webpack","concat","legacy"],"homepage":"https://github.com/mcler/webpack-concat-plugin","bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"license":"ISC","author":{"name":"mcler"},"sideEffects":false,"exports":{".":{"require":"./index.js","import":"./index.mjs","types":"./index.d.ts"}},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","directories":{"lib":"lib","test":"test"},"scripts":{"build":"npm run build:install-peers && rm -rf ./dist/* && npm run build:rollup && cp package.json dist && cp *.md dist","build:install-peers":"npx -y install-peer","build:rollup":"rollup --config","lint":"eslint lib --ext=ts","publish:alpha":"npm run build && cd dist && npm publish --access public --tag alpha","publish:latest":"npm run build && cd dist && npm publish --access public --tag latest","publish:next":"npm run build && cd dist && npm publish --access public --tag next","publish:promote-next":"npm dist-tag add @mcler/webpack-concat-plugin@$(npm dist-tag ls @mcler/webpack-concat-plugin | grep next | sed 's/next\\: //g') latest","test":"jest","test:clean":"rm -rf test/__snapshots__ ; rm -rf test/js","test:coverage":"jest --collectCoverageFrom='lib/*.ts' --coverage","test:create-sourcemaps":"esbuild test/fixtures-sourcemaps/source.js --sourcemap=linked --outfile=test/fixtures-sourcemaps/linked.js && esbuild test/fixtures-sourcemaps/source.js --sourcemap=external --outfile=test/fixtures-sourcemaps/external.js && esbuild test/fixtures-sourcemaps/source.js --sourcemap=inline --outfile=test/fixtures-sourcemaps/inline.js","test:prepare":"npm run test:clean ; npm run test:create-sourcemaps","test:watch":"npm run test:clean; jest --watch"},"dependencies":{"dir-glob":"^3.0.1","fast-glob":"^3.3.2","schema-utils":"^4.0.0","upath":"^2.0.1"},"devDependencies":{"@rollup/plugin-json":"^4.1.0","@types/node":"^17.0.23","@types/webpack-sources":"^3.2.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.26","esbuild-jest":"^0.5.0","eslint":"^8.11.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-typescript":"^3.0.0","eslint-plugin-import":"^2.25.4","eslint-plugin-jest":"^26.1.1","eslint-plugin-promise":"^6.0.0","is-object":"^1.0.1","jest":"^27.2.3","rollup":"^2.70.1","rollup-plugin-esbuild":"^4.8.2","rollup-plugin-typescript2":"^0.31.2","typescript":"^4.6.3"},"peerDependencies":{"html-webpack-plugin":"^5.0.0","source-map":"^0.7.3","webpack":"^5.0.0","webpack-sources":"^3.2.1"},"engines":{"node":">= 10"},"_id":"@mcler/webpack-concat-plugin@5.0.0-alpha7","readme":"# @mcler/webpack-concat-plugin\n\n[![npm package](https://img.shields.io/npm/v/@mcler/webpack-concat-plugin.svg)](https://www.npmjs.org/package/@mcler/webpack-concat-plugin)\n\nA plugin to concat static JavaScript files and (optionally) inject into HTML without Webpack’ `JSONP` code wrapper. A perfect solution for bundling legacy code.\n\nIt delivers:\n\n- Concatination of files\n- Source maps\n- Minification\n- Support for `webpack@5` and `html-webpack-plugin@5`\n- Inject to HTML (via [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin))\n\n> Only Webpack 5 is supported\n\n> Forked from [hxlniada’s plugin](https://github.com/hxlniada/webpack-concat-plugin) – supports Webpack 4\n\n## Install\n\n```\nnpm install @mcler/webpack-concat-plugin --save-dev\n```\n\n```\nyarn add @mcler/webpack-concat-plugin --dev\n```\n\n## Use\n\n```jsx\nconst ConcatPlugin = require('@mcler/webpack-concat-plugin');\nnew ConcatPlugin({\n  name: 'result',\n  outputPath: 'path/to/output/',\n  fileName: '[name].[hash:8].js',\n  filesToConcat: [\n    'jquery',\n    './src/lib/**',\n    './dep/dep.js',\n    [\n      './some/**',\n      '!./some/excludes/**'\n    ]\n  ],\n  attributes: {\n    async: true\n  }\n});\n```\n\n## Minification and Source maps\n\nKey difference of this plugin from [original version](https://github.com/hxlniada/webpack-concat-plugin) is use of Webpack mechanisms for minification and creating source maps.\n\n### `webpack.config.js` mode option\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  mode: 'production'\n};\n```\n\n### `webpack.config.js` detailed configuration\n\n```jsx\nmodule.exports = {\n  // skipping full config...\n  optimization: {\n    minimize: true,\n    minimizer: new TerserPlugin(), // or anything you like\n  },\n  devtool: 'source-map'\n};\n```\n\n## Options\n\n### `name`\n\n`string = \"result\"`\n\nOutput chunk name.\n\n### `publicPath`\n\n`string | false = webpack.publicPath`\n\nPublic path to asset. If `publicPath` is set to `false`, then `relativePath` will be used. `publicPath` will affect script tags:\n\n```jsx\n<script src=\"{publicPath}/{fileName}\" />\n```\n\n### `outputPath`\n\n`string = \"\"`\n\nOutput directory of the file.\n\n### `fileName`\n\n`string = \"[name].js\"`\n\nOutput file name.\n\n### `filesToConcat` *required*\n\n`string[]`\n\nArray of file paths to concat. Supported path patterns:\n\n- normal path\n- npm packages\n- [fast-glob](https://github.com/mrmlnc/fast-glob) patterns\n\n### `injectType`\n\n`string = \"prepend\": \"prepend\" | \"append\" | \"none\"`\n\nHow to inject script tags (only works if `html-webpack-plugin` has `inject` option set to `false`)\n\n### `attributes`\n\n`Record<string, boolean | string>`\n\nExtra attributes applied to script tag.\n\n```jsx\n{\n  async: false,\n  defer: true,\n  crossorigin: \"anonymous\"\n}\n```\n\n## Examples\n\n### Manual inject into HTML\n\n```html\n<script src=\"<%= htmlWebpackPlugin.files.webpackConcat.file %>\"></script>\n```\n","readmeFilename":"README.md","gitHead":"fbe122af02057bd875e55b00a89b6828c14e1a89","_nodeVersion":"20.12.2","_npmVersion":"10.7.0","dist":{"integrity":"sha512-4qEZniz66u+xDePVAv9HOMTLBRVubcH85TeM1xi26U5iYGM8Qfd4m+zFy0iHoJndZuZO4f7W9lJ1o6UgCdHHhQ==","shasum":"749b78246565067515567703e3b649811aa37bb3","tarball":"https://registry.npmjs.org/@mcler/webpack-concat-plugin/-/webpack-concat-plugin-5.0.0-alpha7.tgz","fileCount":8,"unpackedSize":39772,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1n3US924zuDyC0Fn5qCazheUtSpgoDf82JnWfDEQiSQIhAMx1FugjllqPbngVxWu8bDsaY3aW7nybjgiE6c4pSVwa"}]},"_npmUser":{"name":"mcler","email":"mclerishere@gmail.com"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_5.0.0-alpha7_1715716641863_0.5807670080655167"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-22T10:40:12.850Z","4.1.3":"2021-04-22T10:40:13.060Z","modified":"2024-05-14T19:57:22.245Z","4.1.4":"2021-09-28T13:39:00.910Z","4.1.5":"2022-02-28T19:57:42.968Z","5.0.0-alpha1":"2022-03-15T18:48:04.780Z","5.0.0-alpha2":"2022-03-15T23:06:20.387Z","5.0.0-alpha3":"2022-03-25T19:32:18.825Z","5.0.0-alpha4":"2022-04-05T01:05:06.890Z","5.0.0-alpha5":"2022-04-05T12:06:21.558Z","5.0.0-alpha6":"2022-04-06T01:21:40.845Z","4.1.6":"2024-05-14T19:02:57.894Z","5.0.0-alpha7":"2024-05-14T19:57:22.025Z"},"maintainers":[{"name":"mcler","email":"mclerishere@gmail.com"}],"description":"Webpack file concatenation.","homepage":"https://github.com/mcler/webpack-concat-plugin","keywords":["webpack","concat","legacy"],"repository":{"type":"git","url":"git+https://github.com/mcler/webpack-concat-plugin.git"},"author":{"name":"mcler"},"bugs":{"url":"https://github.com/mcler/webpack-concat-plugin/issues"},"license":"ISC","readme":"","readmeFilename":""}