{"bugs":{"url":"https://github.com/hxlniada/webpack-concat-plugin/issues"},"dist":{"shasum":"459d256a5a3d2c8440b8d3eaf9bc7fd401388a03","tarball":"https://registry.npmjs.org/webpack-concat-plugin/-/webpack-concat-plugin-3.0.0-beta.0.tgz","fileCount":7,"integrity":"sha512-a7egd9T0wslLln1FJRKuwCx7abdLXoWIdS297alLZ5MPLa7a03dNQ3F0T6g/DYTvx7sMFoVwSVh0nlVTq/p5tQ==","signatures":[{"sig":"MEQCIFwV0uP9iXmUhKQHil8dq4LJ3IWopXMIQBz/OBem/9+BAiBE7jQ9GNigKQqGn15WiTXyH1s7rt8iCZRvCsMw4sfL2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37707},"jest":{"testEnvironment":"node"},"main":"./release.js","name":"webpack-concat-plugin","author":{"name":"huangxueliang"},"readme":"# webpack-concat-plugin\n\n[![Build Status](https://img.shields.io/travis/hxlniada/webpack-concat-plugin.svg)](https://travis-ci.org/hxlniada/webpack-concat-plugin)\n[![npm package](https://img.shields.io/npm/v/webpack-concat-plugin.svg)](https://www.npmjs.org/package/webpack-concat-plugin)\n[![npm downloads](http://img.shields.io/npm/dm/webpack-concat-plugin.svg)](https://www.npmjs.org/package/webpack-concat-plugin)\n\n> A plugin to help webpack concat js and inject into html\n\n### Why\n\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.\n\n### Install\n\n```\nnpm install webpack-concat-plugin --save-dev\n```\n\n### Features\n\n- Concat\n- Inject to html(with html-webpack-plugin)\n\n### Usage\n\n```javascript\nconst ConcatPlugin = require('webpack-concat-plugin');\n\nnew ConcatPlugin({\n    ...see options\n    // examples\n    uglify: false,\n    sourceMap: false,\n    name: 'result',\n    outputPath: 'path/to/output/',\n    fileName: '[name].[hash:8].js',\n    filesToConcat: ['jquery', './src/lib/**', './dep/dep.js', ['./some/**', '!./some/excludes/**']],\n    attributes: {\n        async: true\n    }\n});\n\n```\n\n### Options\n\n#### uglify [boolean | object] default: false\nif true the output file will be uglified\n\nor set [uglifyjs](https://github.com/mishoo/UglifyJS2) options to customize the output\n\n#### sourceMap [boolean] default: false\nif true, will output sourcemap\n\n#### name [string] default: \"result\"\nit's useful when you want to inject to html-webpack-plugin manully\n\n#### publicPath [string|boolean] default: webpack's publicPath\nif set, will be used as the public path of the script tag.\n\nif set to false, will use relativePath.\n\n#### outputPath [string]\nif set, will be used as the output directory of the file.\n\n#### fileName [string] default: [name].js\nif set, will be used as the output fileName\n\n#### filesToConcat [array] *required*\nsupported path patterns:\n* normal path\n* npm packages\n* [glob](https://github.com/sindresorhus/globby)\n\n#### injectType [\"prepend\"|\"append\"|\"none\"] default: \"prepend\"\nhow to auto inject to html-webpack-plugin(only if html-webpack-plugin set inject option not to be false)\n\n#### attributes [object]\nif set, will be used as the extra attributes of the script tag.\n\n### Examples\n#### Inject to html by hand\n\n```\ndoctype html\n...\n    script(src=htmlWebpackPlugin.files.webpackConcat.flexible)\n...\n```\n\n### TODO\n\n- [ ] add css support\n- [x] auto inject to html\n","engines":{"node":">= 4.8 < 5.0.0 || >= 5.10"},"gitHead":"bcc8876cb2cea4653bdfd6cf057cd47e11f6c5cd","license":"ISC","scripts":{"test":"jest","build":"babel index.js --out-file release.js","test:watch":"jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage"},"_npmUser":{"name":"huangxueliang","email":"862802759@qq.com"},"homepage":"https://github.com/hxlniada/webpack-concat-plugin","repository":{"url":"git+https://github.com/hxlniada/webpack-concat-plugin.git","type":"git"},"_npmVersion":"5.6.0","description":"Webpack file concatenation.","directories":{},"maintainers":[{"name":"huangxueliang","email":"862802759@qq.com"}],"_nodeVersion":"8.2.1","dependencies":{"globby":"^8.0.1","uglify-es":"^3.3.9","schema-utils":"^0.4.5","concat-with-sourcemaps":"^1.0.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^22.4.2","webpack":"^4.0.1","babel-cli":"^6.26.0","is-object":"^1.0.1","babel-jest":"^22.4.1","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","html-webpack-plugin":"^3.0.4","babel-plugin-transform-object-rest-spread":"^6.26.0"},"peerDependencies":{"webpack":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/webpack-concat-plugin_3.0.0-beta.0_1520135317219_0.42683902898917414","host":"s3://npm-registry-packages"},"_id":"webpack-concat-plugin@3.0.0-beta.0","version":"3.0.0-beta.0"}