{"id":15989539,"url":"https://github.com/lucjosin/astro-rename-example","last_synced_at":"2026-05-07T18:42:07.903Z","repository":{"id":202625398,"uuid":"704997856","full_name":"LucJosin/astro-rename-example","owner":"LucJosin","description":"How to use the astro-rename integration to hash all CSS class names from your astro project","archived":false,"fork":false,"pushed_at":"2023-10-20T00:10:55.000Z","size":311,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T07:31:49.875Z","etag":null,"topics":["astro","css","integration","postcss"],"latest_commit_sha":null,"homepage":"https://lucjos.in/b/pNCgOiQi","language":"Astro","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LucJosin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-10-14T18:29:28.000Z","updated_at":"2023-10-20T14:50:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6fd8a79-a9dd-43e0-a7d0-94f5c48cd44f","html_url":"https://github.com/LucJosin/astro-rename-example","commit_stats":null,"previous_names":["lucjosin/astro-rename-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucJosin%2Fastro-rename-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucJosin%2Fastro-rename-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucJosin%2Fastro-rename-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucJosin%2Fastro-rename-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucJosin","download_url":"https://codeload.github.com/LucJosin/astro-rename-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247261605,"owners_count":20910108,"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":["astro","css","integration","postcss"],"created_at":"2024-10-08T04:43:07.221Z","updated_at":"2026-05-07T18:42:07.870Z","avatar_url":"https://github.com/LucJosin.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example of astro-rename integration\n\nFinal project of blog post: [How to hash class names in astro using astro-rename integration](https://lucjos.in/b/pNCgOiQi)\n\n|                                                                          Before                                                                          |                                                                             After                                                                             |\n| :------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------: |\n| ![Devtools default](https://raw.githubusercontent.com/lucjosin/lucasjosino.com/main/public/static/blog/pNCgOiQi/devtools-from-default-astro-project.png) | ![Devtools after](https://raw.githubusercontent.com/lucjosin/lucasjosino.com/main/public/static/blog/pNCgOiQi/devtools-from-custom-astro-rename-strategy.png) |\n\n![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)\n\n## 🚀 Project Structure\n\nInside of your Astro project, you'll see the following folders and files:\n\n```text\n/\n├── public/\n│   └── favicon.svg\n├── src/\n│   ├── components/\n│   │   └── Card.astro\n│   ├── layouts/\n│   │   └── Layout.astro\n│   └── pages/\n│       └── index.astro\n└── package.json\n```\n\nAstro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.\n\nThere's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.\n\nAny static assets, like images, can be placed in the `public/` directory.\n\n## 🧞 Commands\n\nAll commands are run from the root of the project, from a terminal:\n\n| Command                   | Action                                           |\n| :------------------------ | :----------------------------------------------- |\n| `npm install`             | Installs dependencies                            |\n| `npm run dev`             | Starts local dev server at `localhost:4321`      |\n| `npm run build`           | Build your production site to `./dist/`          |\n| `npm run preview`         | Preview your build locally, before deploying     |\n| `npm run astro ...`       | Run CLI commands like `astro add`, `astro check` |\n| `npm run astro -- --help` | Get help using the Astro CLI                     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucjosin%2Fastro-rename-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucjosin%2Fastro-rename-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucjosin%2Fastro-rename-example/lists"}