{"_id":"@beisen/html-webpack-harddisk-plugin","_rev":"1-1d27c3e8f68d802cb9de8ba9e90bcdba","name":"@beisen/html-webpack-harddisk-plugin","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@beisen/html-webpack-harddisk-plugin","version":"1.0.1","description":"Write html files to hard disk even when using the webpack dev server or middleware","main":"index.js","types":"index.d.ts","scripts":{"prepublish":"npm run test","pretest":"semistandard","test":"jasmine","commit":"git-cz","release":"standard-version","debug":"node-debug jasmine"},"repository":{"type":"git","url":"git+https://github.com/jantimon/html-webpack-harddisk-plugin.git"},"keywords":["webpack","plugin","html-webpack-plugin","disk","template"],"author":{"name":"Jan Nicklas","email":"j.nicklas@me.com","url":"https://github.com/jantimon"},"license":"MIT","bugs":{"url":"https://github.com/jantimon/html-webpack-harddisk-plugin/issues"},"homepage":"https://github.com/jantimon/html-webpack-harddisk-plugin","devDependencies":{"@types/webpack":"^4.4.16","commitizen":"3.0.2","cz-conventional-changelog":"2.1.0","html-webpack-plugin":"^3.2.0","jasmine":"^3.2.0","memory-fs":"^0.4.1","rimraf":"^2.6.2","semistandard":"^12.0.1","standard-version":"4.4.0","webpack":"^4.20.2"},"peerDependencies":{"html-webpack-plugin":"^2.0.0 || ^3.0.0 || ^4.0.0","webpack":"^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0"},"dependencies":{"mkdirp":"^0.5.1"},"engines":{"node":">=6.9"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"_id":"@beisen/html-webpack-harddisk-plugin@1.0.1","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Sj5W/Qk5bpcHyq+5mY/oXq5eSJkOpemG2LjWCaF+5HeU4Gq/GFR4pSLZ37L4rwMOX0Q4/ZDj2RqrTIDFWXeXeA==","shasum":"d66f27761065e9a132226847b939a2774c4af7fb","tarball":"https://registry.npmjs.org/@beisen/html-webpack-harddisk-plugin/-/html-webpack-harddisk-plugin-1.0.1.tgz","fileCount":6,"unpackedSize":8747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeAwGmCRA9TVsSAnZWagAAlaUQAJokLv2Qv2P/uhP82GJ7\nLy+zO0HdX8XoVnKlf7EkqootT/xfG6kiyMpsfd6n3+sRNoeq9mfHDS6MMWnc\nLJ5pqRd21obPLkQM7wTejC8s8jvBCarUw4nnz4ym0H4Q4HX+lAVRTf5dejlJ\n2HYi2IM89YyzLZIxD8zArf84Iq7h8z/+lO0hCc4Y51/c7Y7uhlh49cE/Toiw\nqy5VyEy4Pd1FOJdQB1TcUYBslb6I6A7weeeeUdrYv0xAh7ZLDSy3FeEmhcjE\nMsJAgJhkT4U4qyH2WF/qWtKsgXm9vf74d6HaKBvpCrHtSs1w/WIIagbWKYCM\nt21Rp597NGliyz9XS4Ummi7DCMz8sbgatE6Y91X1p05XNCzCval18Rct36Ae\nu3bwxOtGTVkJtTMuT+IZKX7gNP3L0eRxlT8NED6FKXbW640a/yJrgRrKhJ5k\nMGnVni/7iwVYTziUdqu0/h+n73JtROMMfHVcLe5b0HJ8aeFcmBMIrV7kP+Nj\noaQfvEwb8ZY2w9DlVgWh73r7bjoZa6EfcTldIeXJQDcdiYSE2WX8AK/h6Al2\nvEvHugA7TzCj8SnNQ8Pw/YQW0VrLoAoS3RGUT5UHX7nBG063NCqev8GUPLXz\nYxbA4/8Or3MYRPfCoCF5UU6eUp4EMbkS2HGQuXTTacZNDQs623RAT+ZHMPiL\nXvRH\r\n=anFG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARwSsW8Un2956PO7NAoRVenCfIc/tarsNk5SuAruvgyAiAUtDLrYbIJ2I34iOiHFaX1pZcNLKSkJP30U7luV8Fknw=="}]},"maintainers":[{"name":"albert-zhang","email":"albertzhang.pro@gmail.com"},{"name":"liugenpeng","email":"liugenpeng@beisen.com"},{"name":"beisencorp","email":"ci@beisen.com"},{"name":"lgm","email":"it1011@qq.com"},{"name":"neozw","email":"lihegaozhong@gmail.com"}],"_npmUser":{"name":"beisencorp","email":"ci@beisen.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-webpack-harddisk-plugin_1.0.1_1577255333926_0.4193010485351285"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-25T06:28:53.764Z","1.0.1":"2019-12-25T06:28:54.057Z","modified":"2022-04-04T18:18:51.784Z"},"maintainers":[{"name":"albert-zhang","email":"albertzhang.pro@gmail.com"},{"name":"liugenpeng","email":"liugenpeng@beisen.com"},{"name":"beisencorp","email":"ci@beisen.com"},{"name":"lgm","email":"it1011@qq.com"},{"name":"neozw","email":"lihegaozhong@gmail.com"}],"description":"Write html files to hard disk even when using the webpack dev server or middleware","homepage":"https://github.com/jantimon/html-webpack-harddisk-plugin","keywords":["webpack","plugin","html-webpack-plugin","disk","template"],"repository":{"type":"git","url":"git+https://github.com/jantimon/html-webpack-harddisk-plugin.git"},"author":{"name":"Jan Nicklas","email":"j.nicklas@me.com","url":"https://github.com/jantimon"},"bugs":{"url":"https://github.com/jantimon/html-webpack-harddisk-plugin/issues"},"license":"MIT","readme":"Harddisk extension for the HTML Webpack Plugin\n========================================\n[![npm version](https://badge.fury.io/js/html-webpack-harddisk-plugin.svg)](http://badge.fury.io/js/html-webpack-harddisk-plugin) [![Dependency Status](https://david-dm.org/jantimon/html-webpack-harddisk-plugin.svg)](https://david-dm.org/jantimon/html-webpack-harddisk-plugin) [![Build status](https://travis-ci.org/jantimon/html-webpack-harddisk-plugin.svg)](https://travis-ci.org/jantimon/html-webpack-harddisk-plugin) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard)\n\nEnhances [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin)\nfunctionality by adding the `{alwaysWriteToDisk: true|false}` option.\n\nThis is an extension plugin for the [webpack](http://webpack.github.io) plugin [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin) - a plugin that simplifies the creation of HTML files to serve your webpack bundles.\n\nInstallation\n------------\nYou must be running webpack on node 0.12.x or higher\n\nInstall the plugin with npm:\n```shell\n$ npm install --save-dev html-webpack-harddisk-plugin\n```\n\nBasic Usage\n-----------\nRequire the plugin in your webpack config:\n\n```javascript\nvar HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin');\n```\n\nAdd the plugin to your webpack config as follows:\n\n```javascript\nplugins: [\n  new HtmlWebpackPlugin(),\n  new HtmlWebpackHarddiskPlugin()\n]  \n```\nThe above configuration will actually do nothing due to the configuration defaults.\n\nAs soon as you now set `alwaysWriteToDisk` to `true` the generated output of the HtmlWebpackPlugin will\nalways be written to disk. This is very useful if you want to pick up the output with another middleware.\n```javascript\nplugins: [\n  new HtmlWebpackPlugin({\n\t\talwaysWriteToDisk: true\n\t}),\n  new HtmlWebpackHarddiskPlugin()\n]  \n```\n\nEven if you generate multiple files make sure that you add the HtmlWebpackHarddiskPlugin **only once**:\n\n```javascript\nplugins: [\n  new HtmlWebpackPlugin({\n\t\talwaysWriteToDisk: true\n\t}),\n  new HtmlWebpackPlugin({\n\t\talwaysWriteToDisk: true,\n\t\tfilename: 'demo.html'\n\t}),\n  new HtmlWebpackPlugin({\n\t\talwaysWriteToDisk: false,\n\t\tfilename: 'test.html'\n\t}),\n  new HtmlWebpackHarddiskPlugin()\n]  \n```\n\nIf you need to set the output path explicitly (for example when using with webpack-dev-server middleware) then pass in the `outputPath` option:\n\n```\nnew HtmlWebpackHarddiskPlugin({\n  outputPath: path.resolve(__dirname, 'views')\n})\n```\n","readmeFilename":"README.md"}