{"id":18622454,"url":"https://github.com/mindreframer/vite_phx","last_synced_at":"2025-06-18T17:34:42.353Z","repository":{"id":49289639,"uuid":"334295366","full_name":"mindreframer/vite_phx","owner":"mindreframer","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-01T17:29:42.000Z","size":399,"stargazers_count":31,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T12:52:06.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mindreframer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-30T00:33:06.000Z","updated_at":"2025-03-27T09:07:10.000Z","dependencies_parsed_at":"2025-04-11T12:22:26.095Z","dependency_job_id":"ce985b44-ad10-48e1-9ceb-cd129cb91b90","html_url":"https://github.com/mindreframer/vite_phx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mindreframer/vite_phx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindreframer%2Fvite_phx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindreframer%2Fvite_phx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindreframer%2Fvite_phx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindreframer%2Fvite_phx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mindreframer","download_url":"https://codeload.github.com/mindreframer/vite_phx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindreframer%2Fvite_phx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260599019,"owners_count":23034430,"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":[],"created_at":"2024-11-07T04:17:08.897Z","updated_at":"2025-06-18T17:34:37.333Z","avatar_url":"https://github.com/mindreframer.png","language":"Elixir","readme":"# Vite\n[Vite.js]: https://vitejs.dev/\n\n[![Build Status](https://github.com/mindreframer/vite_phx/workflows/CI/badge.svg)](https://github.com/mindreframer/vite_phx/actions?query=workflow%3A%22CI%22)\n\nVite helps you to integrate [Vite.js] with Phoenix.\n\n## Instructions\n\nAdd following lines to your layout template:\n\n```elixir\n\u003c%# load the vite.js client script in dev/test environments %\u003e\n\u003c%= Vite.vite_client() %\u003e\n\n\n\u003c%# When using React.js, also include this preamble hot refresh code %\u003e\n\u003c%= Vite.react_refresh_snippet() %\u003e\n\n\n\u003c%#\nentry point for your application\n- delegates to [Vite.js] in dev / loads all modules / styles in production from the manifest.json\n%\u003e\n\u003c%= Vite.vite_snippet(\"src/main.tsx\") %\u003e\n```\n\n## Configuration\n\n```elixir\n# in config/config.exs\n\n# Configure Vite\nconfig :vite_phx,\n  release_app: :demo,\n  # to tell prod and dev env appart\n  environment: Mix.env(),\n  # this manifest is different from the Phoenix \"cache_manifest.json\"!\n  vite_manifest: \"priv/static/manifest.json\", # optional\n  phx_manifest: \"priv/static/cache_manifest.json\", # optional\n  dev_server_address: \"http://localhost:3000\" # optional\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `vite` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:vite_phx, \"~\u003e 0.2\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/vite](https://hexdocs.pm/vite).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindreframer%2Fvite_phx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindreframer%2Fvite_phx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindreframer%2Fvite_phx/lists"}