{"id":31655556,"url":"https://github.com/cohesivelabs/webpackstaticplug","last_synced_at":"2025-10-07T13:16:18.926Z","repository":{"id":62430783,"uuid":"133300619","full_name":"cohesivelabs/WebpackStaticPlug","owner":"cohesivelabs","description":"Phoenix plug to proxy the webpack dev server in order to enable HMR and faster build times during development","archived":false,"fork":false,"pushed_at":"2018-05-17T20:46:39.000Z","size":12,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T01:22:30.822Z","etag":null,"topics":["elixir","elixir-lang","elixir-phoenix","plug","webpack","webpack-dev-server"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/cohesivelabs.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":"2018-05-14T03:32:48.000Z","updated_at":"2020-10-19T11:37:52.000Z","dependencies_parsed_at":"2022-11-01T20:12:39.083Z","dependency_job_id":null,"html_url":"https://github.com/cohesivelabs/WebpackStaticPlug","commit_stats":null,"previous_names":["jmartin84/webpackstaticplug"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cohesivelabs/WebpackStaticPlug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohesivelabs%2FWebpackStaticPlug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohesivelabs%2FWebpackStaticPlug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohesivelabs%2FWebpackStaticPlug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohesivelabs%2FWebpackStaticPlug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cohesivelabs","download_url":"https://codeload.github.com/cohesivelabs/WebpackStaticPlug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohesivelabs%2FWebpackStaticPlug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278780104,"owners_count":26044500,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["elixir","elixir-lang","elixir-phoenix","plug","webpack","webpack-dev-server"],"created_at":"2025-10-07T13:16:17.792Z","updated_at":"2025-10-07T13:16:18.917Z","avatar_url":"https://github.com/cohesivelabs.png","language":"Elixir","readme":"# WebpackStatic\n[![Build Status](https://travis-ci.org/jmartin84/WebpackStaticPlug.svg?branch=master)](https://travis-ci.org/jmartin84/WebpackStaticPlug)\n\n  Phoenix plug to proxy a locally running instance of the webpack dev server.\u003cbr /\u003e\n  This plug will only serve assets when the env parameter has the value of `:dev`.\u003cbr /\u003e\n  Phoenix will be allowed a chance to resolve any assets not resolved by webpack.\u003cbr /\u003e\n\n## Installation\n\n```elixir\ndefp deps do\n  [\n    {:WebpackStaticPlug, \"~\u003e 0.1.1\"}\n  ]\nend\n```\n\nAnd run:\n\n  $ mix deps.get\n\n## Usage\nAdd WebpackStatic.Plug as a plug in the phoenix project's endpoint.\n\n## Arguments\n* **port** - *(required)* The port that the webpack dev server is listening on.\n* **webpack_assets** - *(required)* a list of the paths in the static folder that webpack will for serve. The plug will ignore requests to any other path.\n* **env** - *(required)* the current environment the project is running under.\n* **manifest_path** - *(optional)* relative path that will resolve from the static folder of the webpack manifest file.\n\n## Example\nin `endpoint.ex`\n\n```elixir\n  plug WebpackStatic.Plug,\n        port: 9000, webpack_assets: ~w(css fonts images js),\n        env: Mix.env, manifest_path: \"/manifest.json\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcohesivelabs%2Fwebpackstaticplug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcohesivelabs%2Fwebpackstaticplug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcohesivelabs%2Fwebpackstaticplug/lists"}