{"id":28220114,"url":"https://github.com/oliverepper/lektor-webpack-html-helper","last_synced_at":"2026-04-28T21:33:37.218Z","repository":{"id":62575581,"uuid":"201814596","full_name":"oliverepper/lektor-webpack-html-helper","owner":"oliverepper","description":"Automatically moves html-files from lektors assets folder into lektors templates folder.","archived":false,"fork":false,"pushed_at":"2019-08-19T08:01:35.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T14:27:11.585Z","etag":null,"topics":["html-webpack-plugin","lektor","webpack4"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oliverepper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-11T21:02:13.000Z","updated_at":"2019-08-19T08:01:37.000Z","dependencies_parsed_at":"2022-11-03T18:57:52.217Z","dependency_job_id":null,"html_url":"https://github.com/oliverepper/lektor-webpack-html-helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oliverepper/lektor-webpack-html-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverepper%2Flektor-webpack-html-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverepper%2Flektor-webpack-html-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverepper%2Flektor-webpack-html-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverepper%2Flektor-webpack-html-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliverepper","download_url":"https://codeload.github.com/oliverepper/lektor-webpack-html-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverepper%2Flektor-webpack-html-helper/sbom","scorecard":{"id":705179,"data":{"date":"2025-08-11","repo":{"name":"github.com/oliverepper/lektor-webpack-html-helper","commit":"4604c07bfd812bd87d4c2240e70e9a4b337504fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T06:21:06.524Z","repository_id":62575581,"created_at":"2025-08-22T06:21:06.524Z","updated_at":"2025-08-22T06:21:06.524Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32400864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-webpack-plugin","lektor","webpack4"],"created_at":"2025-05-18T04:14:31.840Z","updated_at":"2026-04-28T21:33:37.213Z","avatar_url":"https://github.com/oliverepper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lektor-webpack-html-helper\n[![PyPI version](https://badge.fury.io/py/lektor-webpack-html-helper.svg)](https://badge.fury.io/py/lektor-webpack-html-helper)\n[![Downloads](https://pepy.tech/badge/lektor-webpack-html-helper)](https://pepy.tech/project/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\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"\u003e\n    \u003ctitle\u003e{{ this.title }} \u0026middot; {{ config.PROJECT.name }} \u003c/title\u003e\n\n    \u003c% for (var css in htmlWebpackPlugin.files.css) { %\u003e\n    \u003clink href=\"{{ '/generated/\u003c%= htmlWebpackPlugin.files.css[css] %\u003e' | asseturl }}\" rel=\"stylesheet\"\u003e\n    \u003c% } %\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n    \u003cmain\u003e\n        {% block content %}\n        {% endblock content %}\n    \u003c/main\u003e\n\n    \u003c% for (var chunk in htmlWebpackPlugin.files.chunks) { %\u003e\n    \u003cscript src=\"{{ '/generated/\u003c%= htmlWebpackPlugin.files.chunks[chunk].entry %\u003e' | asseturl }}\"\u003e\u003c/script\u003e\n    \u003c% } %\u003e\n\u003c/body\u003e\n\n\u003c/html\u003e\n```\n\nYou can configure the following options via `configs/webpack-html-helper.ini`\n\n|parameter  |default value      |description                                                |\n|-----------|-------------------|-----------------------------------------------------------|\n|src_dir    |\u003croot\u003e/assets      |The folder that gets recursively observed by the watchdog. |\n|target_dir |\u003croot\u003e/templates/  |Lektors template folder.                                   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliverepper%2Flektor-webpack-html-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliverepper%2Flektor-webpack-html-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliverepper%2Flektor-webpack-html-helper/lists"}