{"id":24737292,"url":"https://github.com/byzanteam/dotenv-webpack-plugin","last_synced_at":"2026-05-11T02:21:40.344Z","repository":{"id":38648123,"uuid":"261990028","full_name":"Byzanteam/dotenv-webpack-plugin","owner":"Byzanteam","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-26T23:57:18.000Z","size":211,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T16:56:58.686Z","etag":null,"topics":["webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Byzanteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-07T08:12:54.000Z","updated_at":"2021-10-14T07:04:03.000Z","dependencies_parsed_at":"2023-02-16T12:31:06.747Z","dependency_job_id":null,"html_url":"https://github.com/Byzanteam/dotenv-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byzanteam%2Fdotenv-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byzanteam%2Fdotenv-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byzanteam%2Fdotenv-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byzanteam%2Fdotenv-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Byzanteam","download_url":"https://codeload.github.com/Byzanteam/dotenv-webpack-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244999206,"owners_count":20544866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["webpack","webpack-plugin"],"created_at":"2025-01-27T22:07:41.057Z","updated_at":"2026-05-11T02:21:40.310Z","avatar_url":"https://github.com/Byzanteam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dotenv for Webpack HTML Plugin\n\n通过 `dotenv` 将环境变量挂在到浏览器 `window` 对象上。\n\n## Installation\n\n```bash\n$ npm install -D dotenv-webpack-plugin\n```\n\n## Configuration\n\n```js\nconst HtmlWebpackPlugin = require('html-webpack-plugin')\nconst DotenvWebpackPlugin = require('dotenv-webpack-plugin')\n\nmodule.exports = {\n  ...\n  plugins: [\n    new HtmlWebpackPlugin(),\n    new DotenvWebpackPlugin(),\n  ],\n  ...\n}\n```\n\n## Options\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| dotenv | object | undefined | Dotenv configuration options |\n| property | string | `'env'` | Property name of environment object on window |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyzanteam%2Fdotenv-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyzanteam%2Fdotenv-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyzanteam%2Fdotenv-webpack-plugin/lists"}