{"id":23908336,"url":"https://github.com/nwinch/webpack-dotenv-plugin","last_synced_at":"2025-04-11T07:59:24.789Z","repository":{"id":54416209,"uuid":"59102529","full_name":"nwinch/webpack-dotenv-plugin","owner":"nwinch","description":"Use dotenv with webpack.","archived":false,"fork":false,"pushed_at":"2018-07-16T11:40:38.000Z","size":12,"stargazers_count":53,"open_issues_count":9,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-06T08:46:53.648Z","etag":null,"topics":["dotenv","env","environment-variables","webpack"],"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/nwinch.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":"2016-05-18T09:40:52.000Z","updated_at":"2023-05-05T21:29:26.000Z","dependencies_parsed_at":"2022-08-13T15:00:43.741Z","dependency_job_id":null,"html_url":"https://github.com/nwinch/webpack-dotenv-plugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwinch%2Fwebpack-dotenv-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwinch%2Fwebpack-dotenv-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwinch%2Fwebpack-dotenv-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwinch%2Fwebpack-dotenv-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwinch","download_url":"https://codeload.github.com/nwinch/webpack-dotenv-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232548632,"owners_count":18540144,"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":["dotenv","env","environment-variables","webpack"],"created_at":"2025-01-05T04:34:38.903Z","updated_at":"2025-01-05T04:34:39.566Z","avatar_url":"https://github.com/nwinch.png","language":"JavaScript","readme":"# Webpack dotenv plugin\n\nUse dotenv with webpack.\n\n## Motivation\n\n[`dotenv`](https://github.com/bkeepers/dotenv) is a fantastic and useful way to\nmanage environment variables. I wanted to keep the good times going when\nworking with webpack for frontend projects.\n\n## Install\n\n```\nnpm i --save-dev webpack-dotenv-plugin\n```\n\n## Usage\n\n`webpack-dotenv-plugin` uses [`dotenv-safe`](https://github.com/rolodato/dotenv-safe)\nunder the hood to read and check environment variables. The same options that\ncan be passed to `dotenv-safe` can be passed to this plugin.\n\nIt then reads, parses and exports the listed env vars from `.env` into\nstringified `process.env` so it can be bundled for use with webpack.\n\nExternally set environment variables will override vars set in `.env`.\n\n```js\n// webpack.config.js\nconst DotenvPlugin = require('webpack-dotenv-plugin');\n\nmodule.exports = {\n  ...\n  plugins: [\n    new DotenvPlugin({\n      sample: './.env.default',\n      path: './.env'\n    })\n  ]\n  ...\n};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwinch%2Fwebpack-dotenv-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwinch%2Fwebpack-dotenv-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwinch%2Fwebpack-dotenv-plugin/lists"}