{"_id":"@akqa-frontline/generate-injection-html-webpack-plugin","_rev":"6-c4788d212094eae3e0cc51383d8f553f","time":{"0.9.0-rc.0":"2020-06-23T11:05:46.872Z","created":"2020-06-23T11:06:00.826Z","0.9.0-rc.1":"2020-06-23T11:06:01.175Z","modified":"2022-04-04T12:31:11.587Z"},"name":"@akqa-frontline/generate-injection-html-webpack-plugin","dist-tags":{"next":"0.9.0-rc.1","latest":"0.9.0-rc.1"},"versions":{"0.9.0-rc.1":{"name":"@akqa-frontline/generate-injection-html-webpack-plugin","version":"0.9.0-rc.1","license":"ISC","main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"build":"tsc && copyfiles -f src/config/default.*.ejs lib/config","prebuild":"rimraf lib","test":"jest --verbose --runInBand --detectOpenHandles","test-watch":"jest --verbose --watch --runInBand --detectOpenHandles","test-coverage":"jest --verbose --coverage --runInBand --detectOpenHandles","update-snapshots":"jest -u --runInBand"},"peerDependencies":{"webpack":">=4.0.0"},"dependencies":{"html-webpack-plugin":"4.3.0","webpack":"4.41.2","webpack-module-nomodule-plugin":"^0.4.0"},"devDependencies":{"@akqa-frontline/js-config-webpack-plugin":"^0.9.0-rc.0","@types/jest":"24.0.23","@types/node":"12.12.11","@types/webpack":"4.41.0","@typescript-eslint/eslint-plugin":"2.8.0","@typescript-eslint/parser":"2.8.0","copyfiles":"^2.3.0","eslint":"6.7.2","html-webpack-plugin":"^4.3.0","jest":"24.9.0","rimraf":"3.0.0","ts-jest":"24.1.0","typescript":"3.7.2"},"jest":{"browser":false,"preset":"ts-jest","testEnvironment":"node","watchPathIgnorePatterns":["<rootDir>/test/fixtures"],"coveragePathIgnorePatterns":["node_modules","fixtures","dist"],"collectCoverageFrom":["src/**/*.{js,jsx,ts,tsx}","!test/jsDomWindowContext.{js,ts}"],"coverageReporters":["text"]},"engines":{"npm":">=5","node":">=6"},"publishConfig":{"access":"public"},"gitHead":"fed5c4e573bb2364f15d127404080617f12e3465","description":"![GitHub](https://img.shields.io/github/license/akqa-frontline/frontline) ![npm (scoped)](https://img.shields.io/npm/v/@akqa-frontline/generate-injection-html-webpack-plugin)","_id":"@akqa-frontline/generate-injection-html-webpack-plugin@0.9.0-rc.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-NO0z2MBhTtbWzCOK92GXbmI1x7pGoLe6bA8/XRp2Hz5Fb6grq7np/Ytn/bQrCUBAJCw8I3ngzIO1nmML0BdLNg==","shasum":"5bbcb1a7bebe12f497f2ef6a78cb336b0c6cf4de","tarball":"https://registry.npmjs.org/@akqa-frontline/generate-injection-html-webpack-plugin/-/generate-injection-html-webpack-plugin-0.9.0-rc.1.tgz","fileCount":35,"unpackedSize":37401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8eIZCRA9TVsSAnZWagAAQlMP/0ufXtIWyEZdDdZQB0eW\nO6/DLtvb2onBL0QOQyujELlyi9CknJdtxMSREfx3f1jwouE6wq8WU+mLDPEo\n9asszzKrTskLlhXm+POzQoLptW3D5q9bLP2QZb+WUUtHZXzT0NHZlv/k2yDJ\nqk6rcQBasxQoDRKwx7zEIsQVoD5WoCZGiuZSGuwIY6MftlbEPgcBsri9aYaS\nVtvvdlCVAggzIsqI05C43T4ieelaux3SVIPGb4KRAiv9JC+tC4KczQUqeUX0\nIr2UXHdqVg+s34ym0ilUUvZyw7MzCbWEq9zI6BV5SKtCQmVm8ZA22nblwGzO\nHmZ0eBZS0/Gbs3YG7qzZ05NCzxz7IsmIQvI487qj4C82MDsKgje3/n9TNAAl\n0grK98arkD2f/lBfT0oDL39j/j1Judyw5iR3XazUB6usbqTtSZ0C2Tanmoji\nztUjlBQoJAiiJ05VyObM0S5J43/DZhlQzRQhuOIDI/IS8xZ5N6lVQtnQasl0\nglfHWEM1utC0+/PdXLcfSNNQqoSB7U8rBBmQUxzks/TJwAvD9dAcRP+twCbh\nbwfE0Ro9B3bR6cRD0DoI+Oj/2aT2ii7Bl0F/LnKS8E1LQ7NWRDf7bfTcFOfd\njFS4X5IoD5QQSfTmZCwYWSZriNE7jUkXhtcHoCKbrBKA9PbfhCko4MXEwi3L\nGJam\r\n=Ucfk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH442Vhl5Hgqt1C8QklhXeTJ+mTICN9SHpepTZks0RlEAiBHNHpX1F8dpbjcqfCdbYq47GnyBQ9CsCGvOiyAcaR9uA=="}]},"maintainers":[{"name":"dni","email":"dennis.nielsen@akqa.com"}],"_npmUser":{"name":"dni","email":"dennis.nielsen@akqa.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generate-injection-html-webpack-plugin_0.9.0-rc.1_1592910361052_0.7358562457328968"},"_hasShrinkwrap":false}},"maintainers":[{"name":"dni","email":"dennis.nielsen@akqa.com"}],"description":"![GitHub](https://img.shields.io/github/license/akqa-frontline/frontline) ![npm (scoped)](https://img.shields.io/npm/v/@akqa-frontline/generate-injection-html-webpack-plugin)","license":"ISC","readme":"# @akqa-frontline/generate-injection-html-webpack-plugin\n\n![GitHub](https://img.shields.io/github/license/akqa-frontline/frontline)\n![npm (scoped)](https://img.shields.io/npm/v/@akqa-frontline/generate-injection-html-webpack-plugin)\n\n_this package is not yet fully documented_\n\nGenerate html files with entry point assets\n\n## What does it do\n\nThis package generates HTML with marktup to load script and styles, for both modern and legacy builds \n\n## Install\nInstall this package and its peer dependencies:\n\n```\nnpm install --save-dev --save-exact @akqa-frontline/generate-injection-html-webpack-plugin\nnpm install --save-dev --save-exact webpack\n```\n\n## Usage\n\nAdd the plugin to your webpack configuration\n\n```\n// webpack.config.js\n\nconst {FrontlineGenerateInjectionHtmlWebpackPlugin} = require(\"@akqa-frontline/generate-injection-html-webpack-plugin\")\n\nconst moduleWebpackConfiguration = {\n    plugins: [\n        new FrontlineGenerateInjectionHtmlWebpackPlugin({browserslistEnv: \"modern\"})\n    ]\n}\n\nconst noModuleWebpackConfiguration = {\n    plugins: [\n        new FrontlineGenerateInjectionHtmlWebpackPlugin({browserslistEnv: \"legacy\"})\n    ]\n}\n\nmodule.exports = [moduleWebpackConfiguration, noModuleWebpackConfiguration]\n```\n\nTake a look at [webpack-config](https://github.com/akqa-frontline/frontline/tree/master/packages/webpack-config) for instructions on a more complete Frontline webpack configuration.\n\n## Contributing\n\nPlease refer to the [contributing](https://github.com/akqa-frontline/frontline/blob/master/CONTRIBUTING.md) document.\n\n## License\n\nISC © AKQA\n","readmeFilename":"README.md"}