{"_id":"@slorber/static-site-generator-webpack-plugin","_rev":"3270258","name":"@slorber/static-site-generator-webpack-plugin","description":"Minimal, unopinionated static site generator powered by webpack","dist-tags":{"latest":"4.0.7"},"maintainers":[{"name":"slorber","email":""}],"time":{"modified":"2024-03-21T10:08:00.000Z","created":"2021-06-08T14:44:10.376Z","4.0.7":"2022-06-02T07:50:45.607Z","4.0.6":"2022-06-01T19:56:32.595Z","4.0.5":"2022-06-01T17:35:40.074Z","4.0.4":"2022-03-24T14:38:26.374Z","4.0.3":"2022-03-23T18:34:28.398Z","4.0.2":"2022-03-23T15:56:30.692Z","4.0.1":"2021-06-08T14:44:10.376Z"},"users":{},"author":{"name":"Mark Dalgleish"},"repository":{"type":"git","url":"https://github.com/slorber/static-site-generator-webpack-plugin"},"versions":{"4.0.7":{"name":"@slorber/static-site-generator-webpack-plugin","version":"4.0.7","publishConfig":{"access":"public"},"description":"Minimal, unopinionated static site generator powered by webpack","main":"index.js","scripts":{"test":"jest test","coverage":"jest --coverage","coveralls":"jest --coverage --coverageReporters=text-lcov | coveralls"},"repository":{"type":"git","url":"https://github.com/slorber/static-site-generator-webpack-plugin"},"author":{"name":"Mark Dalgleish"},"license":"MIT","bugs":{"url":"https://github.com/slorber/static-site-generator-webpack-plugin/issues"},"homepage":"https://github.com/slorber/static-site-generator-webpack-plugin","dependencies":{"eval":"^0.1.8","p-map":"^4.0.0","webpack-sources":"^3.2.2"},"engines":{"node":">=14"},"devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","async":"^2.0.1","babel-loader":"^8.0.0","compression-webpack-plugin":"^9.0.1","ejs":"^2.3.4","glob":"^7.0.3","jest":"^24.9.0","node-dir":"^0.1.17","rimraf":"^2.4.4","webpack":"^5.64.2","webpack-stats-plugin":"^1.0.3"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2015 Mark Dalgleish\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@slorber/static-site-generator-webpack-plugin@4.0.7","dist":{"shasum":"fc1678bddefab014e2145cbe25b3ce4e1cfc36f3","size":6771,"noattachment":false,"key":"/@slorber/static-site-generator-webpack-plugin/-/@slorber/static-site-generator-webpack-plugin-4.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slorber/static-site-generator-webpack-plugin/download/@slorber/static-site-generator-webpack-plugin-4.0.7.tgz"},"_npmUser":{"name":"slorber","email":"lorber.sebastien@gmail.com"},"directories":{},"maintainers":[{"name":"slorber","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/static-site-generator-webpack-plugin_4.0.7_1654156245431_0.3816872301488712"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-02T08:41:38.632Z","publish_time":1654156245607,"_cnpm_publish_time":1654156245607},"4.0.6":{"name":"@slorber/static-site-generator-webpack-plugin","version":"4.0.6","publishConfig":{"access":"public"},"description":"Minimal, unopinionated static site generator powered by webpack","main":"index.js","scripts":{"test":"jest test","coverage":"jest --coverage","coveralls":"jest --coverage --coverageReporters=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/slorber/static-site-generator-webpack-plugin.git"},"author":{"name":"Mark Dalgleish"},"license":"MIT","bugs":{"url":"https://github.com/slorber/static-site-generator-webpack-plugin/issues"},"homepage":"https://github.com/slorber/static-site-generator-webpack-plugin","dependencies":{"eval":"^0.1.4","p-map":"^4.0.0","webpack-sources":"^3.2.2"},"engines":{"node":">=14"},"devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","async":"^2.0.1","babel-loader":"^8.0.0","compression-webpack-plugin":"^9.0.1","ejs":"^2.3.4","glob":"^7.0.3","jest":"^24.9.0","node-dir":"^0.1.17","rimraf":"^2.4.4","webpack":"^5.64.2","webpack-stats-plugin":"^1.0.3"},"gitHead":"4ae5463237b6f504c6a547f88612bc179014be9e","_id":"@slorber/static-site-generator-webpack-plugin@4.0.6","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"fd460d449800e1ea6e917bf683683db8c8a230bb","size":7913,"noattachment":false,"key":"/@slorber/static-site-generator-webpack-plugin/-/@slorber/static-site-generator-webpack-plugin-4.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slorber/static-site-generator-webpack-plugin/download/@slorber/static-site-generator-webpack-plugin-4.0.6.tgz"},"_npmUser":{"name":"slorber","email":"lorber.sebastien@gmail.com"},"directories":{},"maintainers":[{"name":"slorber","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/static-site-generator-webpack-plugin_4.0.6_1654113392419_0.022076612001546314"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-01T19:57:49.900Z","publish_time":1654113392595,"_cnpm_publish_time":1654113392595},"4.0.5":{"name":"@slorber/static-site-generator-webpack-plugin","version":"4.0.5","publishConfig":{"access":"public"},"description":"Minimal, unopinionated static site generator powered by webpack","main":"index.js","scripts":{"test":"jest test","coverage":"jest --coverage","coveralls":"jest --coverage --coverageReporters=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/slorber/static-site-generator-webpack-plugin.git"},"author":{"name":"Mark Dalgleish"},"license":"MIT","bugs":{"url":"https://github.com/slorber/static-site-generator-webpack-plugin/issues"},"homepage":"https://github.com/slorber/static-site-generator-webpack-plugin","dependencies":{"eval":"^0.1.4","webpack-sources":"^3.2.2"},"engines":{"node":">=14"},"devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","async":"^2.0.1","babel-loader":"^8.0.0","compression-webpack-plugin":"^9.0.1","ejs":"^2.3.4","glob":"^7.0.3","jest":"^24.9.0","node-dir":"^0.1.17","rimraf":"^2.4.4","webpack":"^5.64.2","webpack-stats-plugin":"^1.0.3"},"gitHead":"55d82e70e24dc627543ab820c9457af50c4d873e","_id":"@slorber/static-site-generator-webpack-plugin@4.0.5","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"69235e5fe17e9f190f3fb6c46d7509fa9f747c6a","size":6453,"noattachment":false,"key":"/@slorber/static-site-generator-webpack-plugin/-/@slorber/static-site-generator-webpack-plugin-4.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slorber/static-site-generator-webpack-plugin/download/@slorber/static-site-generator-webpack-plugin-4.0.5.tgz"},"_npmUser":{"name":"slorber","email":"lorber.sebastien@gmail.com"},"directories":{},"maintainers":[{"name":"slorber","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/static-site-generator-webpack-plugin_4.0.5_1654104939900_0.13599258222124844"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-01T17:39:32.373Z","publish_time":1654104940074,"_cnpm_publish_time":1654104940074},"4.0.4":{"name":"@slorber/static-site-generator-webpack-plugin","version":"4.0.4","publishConfig":{"access":"public"},"description":"Minimal, unopinionated static site generator powered by webpack","main":"index.js","scripts":{"test":"jest test","coverage":"jest --coverage","coveralls":"jest --coverage --coverageReporters=text-lcov | coveralls"},"repository":{"type":"git","url":"https://github.com/endiliey/static-site-generator-webpack-plugin"},"author":{"name":"Mark Dalgleish"},"license":"MIT","bugs":{"url":"https://github.com/endiliey/static-site-generator-webpack-plugin/issues"},"homepage":"https://github.com/endiliey/static-site-generator-webpack-plugin","dependencies":{"bluebird":"^3.7.1","cheerio":"^0.22.0","eval":"^0.1.8","webpack-sources":"^1.4.3"},"devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","async":"^2.0.1","babel-loader":"^8.0.0","compression-webpack-plugin":"^3.0.0","coveralls":"^3.0.2","dir-compare":"^1.4.0","ejs":"^2.3.4","es6-promisify":"^6.0.0","glob":"^7.0.3","jest":"^24.9.0","node-dir":"^0.1.17","rimraf":"^2.4.4","webpack":"^4.41.2","webpack-stats-plugin":"^0.3.0"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2015 Mark Dalgleish\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@slorber/static-site-generator-webpack-plugin@4.0.4","dist":{"shasum":"2bf4a2545e027830d2aa5eb950437c26a289b0f1","size":7173,"noattachment":false,"key":"/@slorber/static-site-generator-webpack-plugin/-/@slorber/static-site-generator-webpack-plugin-4.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slorber/static-site-generator-webpack-plugin/download/@slorber/static-site-generator-webpack-plugin-4.0.4.tgz"},"_npmUser":{"name":"slorber","email":"lorber.sebastien@gmail.com"},"directories":{},"maintainers":[{"name":"slorber","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/static-site-generator-webpack-plugin_4.0.4_1648132706190_0.29950175550572333"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-24T15:20:02.903Z","publish_time":1648132706374,"_cnpm_publish_time":1648132706374},"4.0.3":{"name":"@slorber/static-site-generator-webpack-plugin","version":"4.0.3","publishConfig":{"access":"public"},"description":"Minimal, unopinionated static site generator powered by webpack","main":"index.js","scripts":{"test":"jest test","coverage":"jest --coverage","coveralls":"jest --coverage --coverageReporters=text-lcov | coveralls"},"repository":{"type":"git","url":"https://github.com/endiliey/static-site-generator-webpack-plugin"},"author":{"name":"Mark Dalgleish"},"license":"MIT","bugs":{"url":"https://github.com/endiliey/static-site-generator-webpack-plugin/issues"},"homepage":"https://github.com/endiliey/static-site-generator-webpack-plugin","dependencies":{"bluebird":"^3.7.1","cheerio":"^0.22.0","eval":"0.1.6","webpack-sources":"^1.4.3"},"devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","async":"^2.0.1","babel-loader":"^8.0.0","compression-webpack-plugin":"^3.0.0","coveralls":"^3.0.2","dir-compare":"^1.4.0","ejs":"^2.3.4","es6-promisify":"^6.0.0","glob":"^7.0.3","jest":"^24.9.0","node-dir":"^0.1.17","rimraf":"^2.4.4","webpack":"^4.41.2","webpack-stats-plugin":"^0.3.0"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2015 Mark Dalgleish\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@slorber/static-site-generator-webpack-plugin@4.0.3","dist":{"shasum":"79c99c35761a06fd5317e720172518b60af37e64","size":7171,"noattachment":false,"key":"/@slorber/static-site-generator-webpack-plugin/-/@slorber/static-site-generator-webpack-plugin-4.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slorber/static-site-generator-webpack-plugin/download/@slorber/static-site-generator-webpack-plugin-4.0.3.tgz"},"_npmUser":{"name":"slorber","email":"lorber.sebastien@gmail.com"},"directories":{},"maintainers":[{"name":"slorber","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/static-site-generator-webpack-plugin_4.0.3_1648060468277_0.3441013697768016"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-23T19:32:13.008Z","publish_time":1648060468398,"_cnpm_publish_time":1648060468398},"4.0.2":{"name":"@slorber/static-site-generator-webpack-plugin","version":"4.0.2","publishConfig":{"access":"public"},"description":"Minimal, unopinionated static site generator powered by webpack","main":"index.js","scripts":{"test":"jest test","coverage":"jest --coverage","coveralls":"jest --coverage --coverageReporters=text-lcov | coveralls"},"repository":{"type":"git","url":"https://github.com/endiliey/static-site-generator-webpack-plugin"},"author":{"name":"Mark Dalgleish"},"license":"MIT","bugs":{"url":"https://github.com/endiliey/static-site-generator-webpack-plugin/issues"},"homepage":"https://github.com/endiliey/static-site-generator-webpack-plugin","dependencies":{"bluebird":"^3.7.1","cheerio":"^0.22.0","eval":"^0.1.7","webpack-sources":"^1.4.3"},"devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","async":"^2.0.1","babel-loader":"^8.0.0","compression-webpack-plugin":"^3.0.0","coveralls":"^3.0.2","dir-compare":"^1.4.0","ejs":"^2.3.4","es6-promisify":"^6.0.0","glob":"^7.0.3","jest":"^24.9.0","node-dir":"^0.1.17","rimraf":"^2.4.4","webpack":"^4.41.2","webpack-stats-plugin":"^0.3.0"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2015 Mark Dalgleish\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@slorber/static-site-generator-webpack-plugin@4.0.2","dist":{"shasum":"13b48c80df797e041c4d5c09fbca6b54266a082b","size":7169,"noattachment":false,"key":"/@slorber/static-site-generator-webpack-plugin/-/@slorber/static-site-generator-webpack-plugin-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slorber/static-site-generator-webpack-plugin/download/@slorber/static-site-generator-webpack-plugin-4.0.2.tgz"},"_npmUser":{"name":"slorber","email":"lorber.sebastien@gmail.com"},"directories":{},"maintainers":[{"name":"slorber","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/static-site-generator-webpack-plugin_4.0.2_1648050990549_0.09322264124131552"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-23T16:13:50.534Z","publish_time":1648050990692,"_cnpm_publish_time":1648050990692},"4.0.1":{"name":"@slorber/static-site-generator-webpack-plugin","version":"4.0.1","publishConfig":{"access":"public"},"description":"Minimal, unopinionated static site generator powered by webpack","main":"index.js","scripts":{"test":"jest test","coverage":"jest --coverage","coveralls":"jest --coverage --coverageReporters=text-lcov | coveralls"},"repository":{"type":"git","url":"https://github.com/endiliey/static-site-generator-webpack-plugin"},"author":{"name":"Mark Dalgleish"},"license":"MIT","bugs":{"url":"https://github.com/endiliey/static-site-generator-webpack-plugin/issues"},"homepage":"https://github.com/endiliey/static-site-generator-webpack-plugin","dependencies":{"bluebird":"^3.7.1","cheerio":"^0.22.0","eval":"^0.1.4","url":"^0.11.0","webpack-sources":"^1.4.3"},"devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","async":"^2.0.1","babel-loader":"^8.0.0","compression-webpack-plugin":"^3.0.0","coveralls":"^3.0.2","dir-compare":"^1.4.0","ejs":"^2.3.4","es6-promisify":"^6.0.0","glob":"^7.0.3","jest":"^24.9.0","node-dir":"^0.1.17","rimraf":"^2.4.4","webpack":"^4.41.2","webpack-stats-plugin":"^0.3.0"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2015 Mark Dalgleish\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@slorber/static-site-generator-webpack-plugin@4.0.1","dist":{"shasum":"0c8852146441aaa683693deaa5aee2f991d94841","size":7162,"noattachment":false,"key":"/@slorber/static-site-generator-webpack-plugin/-/@slorber/static-site-generator-webpack-plugin-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slorber/static-site-generator-webpack-plugin/download/@slorber/static-site-generator-webpack-plugin-4.0.1.tgz"},"_npmUser":{"name":"slorber","email":"lorber.sebastien@gmail.com"},"directories":{},"maintainers":[{"name":"slorber","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/static-site-generator-webpack-plugin_4.0.1_1623163450222_0.3612235099713563"},"_hasShrinkwrap":false,"publish_time":1623163450376,"_cnpm_publish_time":1623163450376,"_cnpmcore_publish_time":"2021-12-17T04:13:23.085Z"}},"readme":"[![Build Status](https://img.shields.io/travis/slorber/static-site-generator-webpack-plugin/master.svg?style=flat-square)](http://app.travis-ci.com/slorber/static-site-generator-webpack-plugin) [![npm](https://img.shields.io/npm/v/@slorber/static-site-generator-webpack-plugin.svg?style=flat-square)](https://npmjs.org/package/@slorber/static-site-generator-webpack-plugin)\n\n# FORK FOR DOCUSAURUS\n\nThis is a fork used for Docusaurus\n\nThis fixes [trailing slash issues](https://github.com/facebook/docusaurus/issues/3372) by allowing to output `/filename.html` instead of `/filename/index.html` by exposing a `preferFoldersOutput: false` option.\n\nIt is based on a previous fork by Endiliey: https://github.com/endiliey/static-site-generator-webpack-plugin \n\nI don't know the reasons of the initial fork.\n\nWe also added a `concurrency: 32` option to avoid overloading the system with too much IO (using [p-map](https://github.com/sindresorhus/p-map))\n\n# static site generator webpack plugin\n\nMinimal, unopinionated static site generator powered by webpack.\n\nBring the world of server rendering to your static build process. Either provide an array of paths to be rendered and a matching set of `index.html` files will be rendered in your output directory by executing your own custom, webpack-compiled render function.\n\nThis plugin works particularly well with universal libraries like [React](https://github.com/facebook/react) and [React Router](https://github.com/rackt/react-router) since it allows you to pre-render your routes at build time, rather than requiring a Node server in production.\n\n## Install\n\n```bash\n$ npm install --save-dev @slorber/static-site-generator-webpack-plugin\n```\n\n## Usage\n\nEnsure you have webpack installed, e.g. `npm install -g webpack`\n\n### webpack.config.js\n\n```js\nconst StaticSiteGeneratorPlugin = require('@slorber/static-site-generator-webpack-plugin');\n\nmodule.exports = {\n\n  entry: './index.js',\n\n  output: {\n    filename: 'index.js',\n    path: 'dist',\n    /* IMPORTANT!\n     * You must compile to UMD or CommonJS\n     * so it can be required in a Node context: */\n    libraryTarget: 'umd'\n  },\n\n  plugins: [\n    new StaticSiteGeneratorPlugin({\n      paths: [\n        '/hello/',\n        '/world/'\n      ],\n      locals: {\n        // Properties here are merged into `locals`\n        // passed to the exported render function\n        greet: 'Hello'\n      }\n    })\n  ]\n\n};\n```\n\n### index.js\n\nSync rendering:\n\n```js\nmodule.exports = function render(locals) {\n  return '<html>' + locals.greet + ' from ' + locals.path + '</html>';\n};\n```\n\nAsync rendering via callbacks:\n\n```js\nmodule.exports = function render(locals, callback) {\n  callback(null, '<html>' + locals.greet + ' from ' + locals.path + '</html>');\n};\n```\n\nAsync rendering via promises:\n\n```js\nmodule.exports = function render(locals) {\n  return Promise.resolve('<html>' + locals.greet + ' from ' + locals.path + '</html>');\n};\n```\n\n## Multi rendering\n\nIf you need to generate multiple files per render, or you need to alter the path, you can return an object instead of a string, where each key is the path, and the value is the file contents:\n\n```js\nmodule.exports = function render() {\n  return {\n    '/': '<html>Home</html>',\n    '/hello': '<html>Hello</html>',\n    '/world': '<html>World</html>'\n  };\n};\n```\n\nNote that this will still be executed for each entry in your `paths` array in your plugin config.\n\n## Default locals\n\n```js\n// The path currently being rendered:\nlocals.path;\n\n// An object containing all assets:\nlocals.assets;\n\n// Advanced: Webpack's stats object:\nlocals.webpackStats;\n```\n\nAny additional locals provided in your config are also available.\n\n\n## Custom file names\n\nBy providing paths that end in `.html`, you can generate custom file names other than the default `index.html`. Please note that this may break compatibility with your router, if you're using one.\n\n```js\nmodule.exports = {\n\n  ...\n\n  plugins: [\n    new StaticSiteGeneratorPlugin({\n      paths: [\n        '/index.html',\n        '/news.html',\n        '/about.html'\n      ]\n    })\n  ]\n};\n```\n\n## Globals\n\nIf required, you can provide an object that will exist in the global scope when executing your render function. This is particularly useful if certain libraries or tooling you're using assumes a browser environment.\n\nFor example, when using Webpack's `require.ensure`, which assumes that `window` exists:\n\n```js\nmodule.exports = {\n  ...,\n  plugins: [\n    new StaticSiteGeneratorPlugin({\n      globals: {\n        window: {}\n      }\n    })\n  ]\n}\n```\n\n## Asset support\n\ntemplate.ejs\n```ejs\n<% css.forEach(function(file){ %>\n<link href=\"<%- file %>\" rel=\"stylesheet\">\n<% }); %>\n\n<% js.forEach(function(file){ %>\n<script src=\"<%- file %>\" async></script>\n<% }); %>\n```\n\nindex.js\n```js\nif (typeof global.document !== 'undefined') {\n  const rootEl = global.document.getElementById('outlay');\n  React.render(\n    <App />,\n    rootEl,\n  );\n}\n\nexport default (data) => {\n  const assets = Object.keys(data.webpackStats.compilation.assets);\n  const css = assets.filter(value => value.match(/\\.css$/));\n  const js = assets.filter(value => value.match(/\\.js$/));\n  return template({ css, js, ...data});\n}\n```\n\n## Specifying entry\n\nThis plugin defaults to the first chunk found. While this should work in most cases, you can specify the entry name if needed:\n\n```js\nmodule.exports = {\n  ...,\n  plugins: [\n    new StaticSiteGeneratorPlugin({\n      entry: 'main'\n    })\n  ]\n}\n```\n\n## Compression support\n\nGenerated files can be compressed with [compression-webpack-plugin](https://github.com/webpack/compression-webpack-plugin), but first ensure that this plugin appears before compression-webpack-plugin in your plugins array:\n\n```js\nconst StaticSiteGeneratorPlugin = require('@slorber/static-site-generator-webpack-plugin');\nconst CompressionPlugin = require('compression-webpack-plugin');\n\nmodule.exports = {\n  ...\n\n  plugins: [\n    new StaticSiteGeneratorPlugin(...),\n    new CompressionPlugin(...)\n  ]\n};\n```\n\n## Related projects\n\n- [react-router-to-array](https://github.com/alansouzati/react-router-to-array) - useful for avoiding hardcoded lists of routes to render\n- [gatsby](https://github.com/gatsbyjs/gatsby) - opinionated static site generator built on top of this plugin\n\n## License\n\n[MIT License](http://markdalgleish.mit-license.org)\n","_attachments":{},"homepage":"https://github.com/slorber/static-site-generator-webpack-plugin","bugs":{"url":"https://github.com/slorber/static-site-generator-webpack-plugin/issues"},"license":"MIT"}