{"_id":"@alexlebed/webpack-concat-plugin","_rev":"1-661f270bd0406db51e20994a148f3074","name":"@alexlebed/webpack-concat-plugin","dist-tags":{"latest":"3.0.0"},"versions":{"3.0.0":{"name":"@alexlebed/webpack-concat-plugin","version":"3.0.0","author":{"name":"alexlebed"},"description":"Webpack file concatenation.","license":"ISC","main":"./release.js","scripts":{"test":"jest","test:watch":"jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","build":"babel index.js --out-file release.js"},"dependencies":{"concat-with-sourcemaps":"^1.0.5","globby":"^8.0.1","schema-utils":"^0.4.5","uglify-es":"^3.3.9","upath":"^1.1.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","html-webpack-plugin":"^3.0.4","is-object":"^1.0.1","jest":"^22.4.2","webpack":"^4.0.1"},"peerDependencies":{"webpack":"^4.0.1"},"engines":{"node":">= 4.8 < 5.0.0 || >= 5.10"},"homepage":"https://github.com/alexlebed/webpack-concat-plugin","repository":{"type":"git","url":"git+https://github.com/alexlebed/webpack-concat-plugin.git"},"bugs":{"url":"https://github.com/alexlebed/webpack-concat-plugin/issues"},"jest":{"testEnvironment":"node"},"gitHead":"e32ee1d5f9b883b493b7cd64e0547635aa7d0a72","_id":"@alexlebed/webpack-concat-plugin@3.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+XYHdGcPG++/QYQOIxMxNCyjPQPNgfxPnfqsH8qQZpYyXw5yl6Vtj2XeaSWVgyjy82v7QZUB6dg66tTGdjShsw==","shasum":"1e91be50e42cfd15a9ef7a217e8c7a72d6f6dda1","tarball":"https://registry.npmjs.org/@alexlebed/webpack-concat-plugin/-/webpack-concat-plugin-3.0.0.tgz","fileCount":6,"unpackedSize":23015,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrVhgCRA9TVsSAnZWagAAS0MP/RNXah3pWNE5b2Dsq4Rd\nAh6JzqxtPb7jnMjZtwlVDhkocDnW+QIFoX5tT2hfBpIdqwD00HCnWpaJkJk7\n71x1B0frrIGqZXKMTkdx+4bcU011Vrym4WX0846XcYZgeVylS0Qvno8tZrQH\nz1iSCnnaYE5jZAV0Z07qiq3VJRbYsDg45gwSUUkfJYz+xUsBcrnu1r4ggIi0\nBQOytUlVW5a1PgbsJdhjhQsc+WmVLgG5JSVTHcHS4KccH6d2bi+fd6eMCbh4\nT32GQSOlBuUAHFwjaNvWUBFo0L9XbvRAKgOczzWL6NnzW/O6vyGrHObgWGN0\nKXUsoqfz/0/DuBw0g9il5u14iW5d/3AZMl5x1NPfdq6PvCf7/FIc6SEyIqdR\nK6HGKpaQbYVNaEI3s3SVEmpYaO2SLf0eNEbwW9yNre+AcYwoI5LRjAxJoOsh\nim7r2jg3sstt8jRO19wL+a5MacefjTQKI62XYbhdUme/Lvl+rRgjfjTOp0y0\nvYMmmo4razUmlN0rkymfY7TaM5xpdhW1txFyG6G075+Ph8+FPG/GRpBMbuGD\n036icY107XR2BONj0gUf/BWYiWOoScuwACSIQieKhiYaM/12klb1ZZHzWkyO\npj3urnpuhQg8d8MnMZH+yLaQdy8T+dGWhJepRtSs9AV0yar+gngGLgJVvIL3\nSo7l\r\n=/1eW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRG4zjhUD8MDZ9BE0OXr+E0DJa4Jj38paU9YH7QvUavwIhAOZ6XhkGxP3DnKRRBApBas2MpyHgvHexz1//rzLOVwrU"}]},"_npmUser":{"name":"alexlebed","email":"gurzuf4u@gmail.com"},"directories":{},"maintainers":[{"name":"alexlebed","email":"gurzuf4u@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-concat-plugin_3.0.0_1621973088176_0.5823211242919135"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-25T20:04:48.126Z","3.0.0":"2021-05-25T20:04:48.364Z","modified":"2022-04-04T12:41:05.064Z"},"maintainers":[{"name":"alexlebed","email":"gurzuf4u@gmail.com"}],"description":"Webpack file concatenation.","homepage":"https://github.com/alexlebed/webpack-concat-plugin","repository":{"type":"git","url":"git+https://github.com/alexlebed/webpack-concat-plugin.git"},"author":{"name":"alexlebed"},"bugs":{"url":"https://github.com/alexlebed/webpack-concat-plugin/issues"},"license":"ISC","readme":"# @alexlebed/webpack-concat-plugin\r\n\r\n[![Build Status](https://img.shields.io/travis/hxlniada/webpack-concat-plugin.svg)](https://travis-ci.org/hxlniada/webpack-concat-plugin)\r\n[![npm package](https://img.shields.io/npm/v/webpack-concat-plugin.svg)](https://www.npmjs.org/package/webpack-concat-plugin)\r\n[![npm downloads](http://img.shields.io/npm/dm/webpack-concat-plugin.svg)](https://www.npmjs.org/package/webpack-concat-plugin)\r\n\r\n> A plugin to help webpack concat js and inject into html\r\n\r\n### Why\r\n\r\nWebpack is really powerful. However, when I want to concat the static files and inject into html without webpack JSONP code wrapper, it seems impossible to do that without other tool's help.\r\n\r\n### Install\r\n\r\nfor webpack >= 5.0\r\n```\r\nnpm install @alexlebed/webpack-concat-plugin --save-dev\r\n```\r\n\r\n### Features\r\n\r\n- Concat\r\n- Inject to html(with html-webpack-plugin)\r\n\r\n### Usage\r\n\r\n```javascript\r\nconst ConcatPlugin = require('@alexlebed/webpack-concat-plugin');\r\n\r\nnew ConcatPlugin({\r\n    ...see options\r\n    // examples\r\n    uglify: false,\r\n    sourceMap: false,\r\n    name: 'result',\r\n    outputPath: 'path/to/output/',\r\n    fileName: '[name].[hash:8].js',\r\n    filesToConcat: ['jquery', './src/lib/**', './dep/dep.js', ['./some/**', '!./some/excludes/**']],\r\n    attributes: {\r\n        async: true\r\n    }\r\n});\r\n\r\n```\r\n\r\n### Options\r\n\r\n#### uglify [boolean | object] default: false\r\nif true the output file will be uglified\r\n\r\nor set [uglifyjs](https://github.com/mishoo/UglifyJS2) options to customize the output\r\n\r\n#### sourceMap [boolean] default: false\r\nif true, will output sourcemap\r\n\r\n#### name [string] default: \"result\"\r\nit's useful when you want to inject to html-webpack-plugin manully\r\n\r\n#### publicPath [string|boolean] default: webpack's publicPath\r\nif set, will be used as the public path of the script tag.\r\n\r\nif set to false, will use relativePath.\r\n\r\n#### outputPath [string]\r\nif set, will be used as the output directory of the file.\r\n\r\n#### fileName [string] default: [name].js\r\nif set, will be used as the output fileName\r\n\r\n#### filesToConcat [array] *required*\r\nsupported path patterns:\r\n* normal path\r\n* npm packages\r\n* [glob](https://github.com/sindresorhus/globby)\r\n\r\n#### injectType [\"prepend\"|\"append\"|\"none\"] default: \"prepend\"\r\nhow to auto inject to html-webpack-plugin(only if html-webpack-plugin set inject option not to be false)\r\n\r\n#### attributes [object]\r\nif set, will be used as the extra attributes of the script tag.\r\n\r\n### Examples\r\n#### Inject to html by hand\r\n\r\n```\r\ndoctype html\r\n...\r\n    script(src=htmlWebpackPlugin.files.webpackConcat.flexible)\r\n...\r\n```\r\n\r\n### TODO\r\n\r\n- [ ] add css support\r\n- [x] auto inject to html\r\n","readmeFilename":"README.md"}