{ "info": { "author": "Oliver Epper", "author_email": "oliver.epper@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Plugins", "Framework :: Lektor" ], "description": "# lektor-webpack-html-helper\n\nThis is a plugin for Lektor that adds support for generating templates with webpacks HtmlWebpackPlugin. These templates can be generated into Lektors assets folder which will be observed for newly created or modified html files.\nThese files will then be copied over to Lektors templates folder so that they can be used by Lektor.\nThis plugin depends on the [lektor-webpack-support](https://github.com/lektor/lektor-webpack-support) plugin to be really useful.\n\n# webpack/webpack.config.js\n```js\nconst path = require(\"path\");\nconst MiniCssExtractPlugin = require(\"mini-css-extract-plugin\");\nconst HtmlWebpackPlugin = require(\"html-webpack-plugin\");\nconst { CleanWebpackPlugin } = require(\"clean-webpack-plugin\");\n\n\nmodule.exports = {\n mode: \"production\",\n entry: {\n main: \"./src/index.js\"\n },\n output: {\n filename: \"[name].bundle.js\",\n path: path.dirname(__dirname) + \"/assets/generated\" \n },\n optimization: {\n minimizer: [\n new HtmlWebpackPlugin({\n inject: false,\n filename: \"layout_generated.html\",\n template: \"./src/layout_template.html\"\n })\n ],\n },\n plugins: [\n new CleanWebpackPlugin(),\n new MiniCssExtractPlugin({\n filename: \"[name].css\"\n })\n ],\n module: {\n rules: [{\n test: /\\.scss$/,\n use: [\n MiniCssExtractPlugin.loader,\n \"css-loader\",\n \"sass-loader\"\n ]\n }]\n }\n}\n```\n\n# webpack/src/layout_template.html\n```html\n\n\n\n\n \n \n \n {{ this.title }} · {{ config.PROJECT.name }} \n\n <% for (var css in htmlWebpackPlugin.files.css) { %>\n ' | asseturl }}\" rel=\"stylesheet\">\n <% } %>\n\n\n\n
\n {% block content %}\n {% endblock content %}\n
\n\n <% for (var chunk in htmlWebpackPlugin.files.chunks) { %>\n \n <% } %>\n\n\n\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/oliverepper/lektor-webpack-html-helper", "keywords": "Lektor plugin webpack html-webpack-plugin", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lektor-webpack-html-helper", "package_url": "https://pypi.org/project/lektor-webpack-html-helper/", "platform": "", "project_url": "https://pypi.org/project/lektor-webpack-html-helper/", "project_urls": { "Homepage": "https://github.com/oliverepper/lektor-webpack-html-helper" }, "release_url": "https://pypi.org/project/lektor-webpack-html-helper/0.1.3/", "requires_dist": [ "watchdog" ], "requires_python": "", "summary": "Observes the assets directory for html files and copies them into the templates folder.", "version": "0.1.3" }, "last_serial": 5693986, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "0edf42cb5de98f7430cc27517b99207b", "sha256": "4aa6f615a3c12f3f1dfcd00e69b5ab6866924f78b41f0e50370a35b5087640e1" }, "downloads": -1, "filename": "lektor_webpack_html_helper-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0edf42cb5de98f7430cc27517b99207b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3331, "upload_time": "2019-08-12T17:48:41", "url": "https://files.pythonhosted.org/packages/f7/4d/22ff331c48e878deb6d090f9bf19290e9ca9a135666ad3519d6bfde54fd3/lektor_webpack_html_helper-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d4c705c0def505f6d657226555972b6", "sha256": "d61acbc51844e50e0efc10d515b3caf6786897964f6ab792c5d13a21b4b964f4" }, "downloads": -1, "filename": "lektor-webpack-html-helper-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4d4c705c0def505f6d657226555972b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3180, "upload_time": "2019-08-12T17:48:42", "url": "https://files.pythonhosted.org/packages/1a/68/8b979a4952ddc9693555b7344f45db18d0a536ce05b6454d55d1a5143144/lektor-webpack-html-helper-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "a1e5aa45e18555df4b48d4b8101a9377", "sha256": "96f6d50d902883a383bd57c68ba7afe9cab952abd84c84a679dd1ca4e58f8cae" }, "downloads": -1, "filename": "lektor_webpack_html_helper-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "a1e5aa45e18555df4b48d4b8101a9377", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3418, "upload_time": "2019-08-18T09:30:01", "url": "https://files.pythonhosted.org/packages/43/d1/a401b2c67b4ff2375a302e0709e01b01c411edd2694946b8cc7f03350a3b/lektor_webpack_html_helper-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6c161df1cab3cdc77b4832517b29921", "sha256": "b3069089e9e9af038c69a3185c8ed31253a5fae2941c0164bd1a3c8e3ab3e04a" }, "downloads": -1, "filename": "lektor-webpack-html-helper-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b6c161df1cab3cdc77b4832517b29921", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3252, "upload_time": "2019-08-18T09:30:03", "url": "https://files.pythonhosted.org/packages/7f/f1/5abb57d0834db5333d27aec1cc983a45c15f0c4fdf0a6ea8ccc35b6187bd/lektor-webpack-html-helper-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a1e5aa45e18555df4b48d4b8101a9377", "sha256": "96f6d50d902883a383bd57c68ba7afe9cab952abd84c84a679dd1ca4e58f8cae" }, "downloads": -1, "filename": "lektor_webpack_html_helper-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "a1e5aa45e18555df4b48d4b8101a9377", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3418, "upload_time": "2019-08-18T09:30:01", "url": "https://files.pythonhosted.org/packages/43/d1/a401b2c67b4ff2375a302e0709e01b01c411edd2694946b8cc7f03350a3b/lektor_webpack_html_helper-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6c161df1cab3cdc77b4832517b29921", "sha256": "b3069089e9e9af038c69a3185c8ed31253a5fae2941c0164bd1a3c8e3ab3e04a" }, "downloads": -1, "filename": "lektor-webpack-html-helper-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b6c161df1cab3cdc77b4832517b29921", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3252, "upload_time": "2019-08-18T09:30:03", "url": "https://files.pythonhosted.org/packages/7f/f1/5abb57d0834db5333d27aec1cc983a45c15f0c4fdf0a6ea8ccc35b6187bd/lektor-webpack-html-helper-0.1.3.tar.gz" } ] }