{"_id":"@ndelangen/html-webpack-harddisk-plugin","_rev":"1-abbaee5f7ed392eabd0cacd92e22a252","name":"@ndelangen/html-webpack-harddisk-plugin","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@ndelangen/html-webpack-harddisk-plugin","version":"0.2.0","description":"Write html files to hard disk even when using the webpack dev server or middleware","main":"index.js","scripts":{"prepublish":"npm run test","pretest":"semistandard","test":"jasmine","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.12","html-webpack-plugin":"^4.0.0-beta.1","jasmine":"^2.4.1","memory-fs":"^0.3.0","rimraf":"^2.5.2","semistandard":"^7.0.5","webpack":"^4.20.2"},"peerDependencies":{"html-webpack-plugin":"^2.0.0 || ^3.0.0","webpack":"^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0"},"dependencies":{"mkdirp":"^0.5.1"},"gitHead":"be92beaf16dec888c78f204504bdf9a405fc8b90","_id":"@ndelangen/html-webpack-harddisk-plugin@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"dist":{"integrity":"sha512-55Mo2b5WtIT0l653y6ocu7C6QzznbasEnlixGzA26WK8Fj81wuEY3xf5N5bNAvDVfrwTLIPTXdEUGgPdrPLszw==","shasum":"d2eb570597c83c1aa93d1f2fcb3d874a5855de07","tarball":"https://registry.npmjs.org/@ndelangen/html-webpack-harddisk-plugin/-/html-webpack-harddisk-plugin-0.2.0.tgz","fileCount":4,"unpackedSize":7284,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbv5nHCRA9TVsSAnZWagAAGlEP/3RgUrpLyEQMmfMT46sD\nsAyuPpPzA1KGl6U/F3MI2m9wAfkQqqcP3AOd8hJHAJWRaKy46mViuZGm4wel\n0J1Tqr/1AL0izyGF95w4PvqPtfn3Doxt/bKPfVVOfFbER47cXeaaqg91VMLW\nPZHqw8N4xQs/3g8brJfaesvStTRQYLn6yKt3Nh8BR+jjc4E8kyVp+VTMgWjw\nwNg5U9GidKF4k9+R6WwWeUjQ2fiC/oSbh+qs6lrNkLozhZOyIQ4yX74eQlJ7\nb369o4We1rLwBFeUr+rsyROY1a0gRztFkN56UH8EHOVxuBISmQEOHF0uY448\nfX5iVOQxOOC5WY6C2lbkePkeffzY7UF6Z7P6PztqljNIDCDI760A1P88J6Ut\n5MGMfKf3tmKESxHIVl4EbD9Iq8TnbdKClMjDsIz39bKto7Myk/9EdhtadwC3\nZvwVY2vd8JpWlxE11Oa2IS8QxOxAQbnLk33JBPOOFriko5l+ezrZYlj9nkGB\nFE+5giuHxo7vfLfrmb4GFJyE4VUpTZUC3XsG8Mt2mgO9MlSJbzai1JYLbbBK\nNR9mhzxWNnzDaVfsBRktlcly6/ZyYkD75EwpAAcZBNwO1+G+Vh4VmksdZElc\nwNlLXUS2pSkycuWmGpOHKEuRmuMxta18CB/GXdobacERQ4KlVT14H6MjPE/P\nN/nh\r\n=ze89\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUlUuRzblf/PWKENHu7vWdC08X8F82qeF/S9a9N7pZnAiB8foMh95rQ/uL/pS9JZQP5XDl4I2JeuhcWgM3Uxft2dQ=="}]},"maintainers":[{"name":"ndelangen","email":"ndelangen@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-webpack-harddisk-plugin_0.2.0_1539283397974_0.45406627882827943"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-11T18:43:17.809Z","0.2.0":"2018-10-11T18:43:18.089Z","modified":"2022-04-06T07:48:18.941Z"},"maintainers":[{"name":"ndelangen","email":"ndelangen@me.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"}