{"id":22293013,"url":"https://github.com/nathanosdev/ic-webpack-plugin","last_synced_at":"2026-04-27T21:32:15.355Z","repository":{"id":58974136,"uuid":"534761778","full_name":"nathanosdev/ic-webpack-plugin","owner":"nathanosdev","description":"A Webpack plugin to find your Internet Computer canister Ids and create environment variables for them","archived":false,"fork":false,"pushed_at":"2022-10-10T23:07:50.000Z","size":309,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T10:59:22.355Z","etag":null,"topics":["dfinity","dfx","icp","internet-computer","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/nathanosdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-09T18:30:39.000Z","updated_at":"2025-09-21T18:16:23.000Z","dependencies_parsed_at":"2023-01-19T20:17:27.343Z","dependency_job_id":null,"html_url":"https://github.com/nathanosdev/ic-webpack-plugin","commit_stats":null,"previous_names":["solec-labs/ic-webpack-plugin"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/nathanosdev/ic-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanosdev%2Fic-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanosdev%2Fic-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanosdev%2Fic-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanosdev%2Fic-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanosdev","download_url":"https://codeload.github.com/nathanosdev/ic-webpack-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanosdev%2Fic-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dfinity","dfx","icp","internet-computer","webpack","webpack-plugin"],"created_at":"2024-12-03T17:26:57.791Z","updated_at":"2026-04-27T21:32:15.341Z","avatar_url":"https://github.com/nathanosdev.png","language":"TypeScript","readme":"# IC Webpack Plugin\n\n## Overview\n\nA Webpack plugin to find your Internet Computer canister Ids and create environment variables for them.\n\n[![Build status](https://img.shields.io/github/workflow/status/Solec-Labs/ic-webpack-plugin/Merge)](https://github.com/Solec-Labs/ic-webpack-plugin/actions/workflows/merge.yml)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](https://commitizen-tools.github.io/commitizen/)\n[![Dependencies](https://img.shields.io/librariesio/release/npm/@solec/ic-webpack-plugin)](https://www.npmjs.com/package/@solec/ic-webpack-plugin)\n[![Latest Version](https://img.shields.io/npm/v/@solec/ic-webpack-plugin)](https://www.npmjs.com/package/@solec/ic-webpack-plugin)\n[![License](https://img.shields.io/github/license/Solec-Labs/ic-webpack-plugin)](./LICENSE)\n\n## What It Does\n\n- Loads canister IDs from `canister_ids.json` and provides environment variables for `agent-js`.\n- Sets up a proxy for an IC network - local, production or an alternative network that you configure.\n- Detects your static assets from `dfx.json` and serves them through Webpack Dev Server.\n\n## Installation\n\n```shell\n$ npm i -D @solec/ic-webpack-plugin\n```\n\n## Usage\n\nIn your `webpack.config.js` file, add this plugin to your `plugins` array:\n\n```javascript\nconst IcWebpackPlugin = require('@solec/ic-webpack-plugin');\n\nmodule.exports = {\n  // ...\n  plugins: [\n    // ...\n    new IcWebpackPlugin(),\n  ],\n};\n```\n\n## Building For Production\n\nWhen `--network` is set to `ic` through `dfx`, or `NODE_ENV` is to `production` then canister IDs will be read from a `canister_ids.json` file in the root of your directory.\nThat file should be structured like this:\n\n```json\n{\n  \"${canister_name}\": {\n    \"ic\": \"${canister-id}\"\n  },\n  \"${canister_name}\": {\n    \"ic\": \"${canister-id}\"\n  }\n}\n```\n\nThen you can build for the `ic` network using `dfx`:\n\n```shell\n$ dfx build --network ic\n```\n\nOr deploy to the `ic` network using `dfx`:\n\n```shell\n$ dfx deploy --network ic\n```\n\n## Building For An Alternative Network\n\nIn your `dfx.json` file, add another network, for example:\n\n```json\n{\n  \"networks\": {\n    // ...\n    \"testnet\": {\n      \"bind\": \"127.0.0.1:8000\", // insert your network's URL here\n      \"type\": \"ephemeral\"\n    }\n  }\n}\n```\n\nCreate your canisters on the network:\n\n```shell\n$ dfx canister --network testnet create --all\n```\n\nThen you can build for your alternative network using `dfx`:\n\n```shell\n$ dfx build --network testnet\n```\n\nOr deploy to your alternative network using `dfx`:\n\n```shell\n$ dfx deploy --network testnet\n```\n\nThe plugin will automatically pick up the network that you've selected through `dfx`.\n\n## Contributing\n\nCheck out our [Contribution Guide](./CONTRIBUTING.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanosdev%2Fic-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanosdev%2Fic-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanosdev%2Fic-webpack-plugin/lists"}