{"id":19141014,"url":"https://github.com/vladimirmikulic/parcel-plugin-custom-dist-structure","last_synced_at":"2025-08-21T08:31:40.295Z","repository":{"id":52786624,"uuid":"247294741","full_name":"VladimirMikulic/parcel-plugin-custom-dist-structure","owner":"VladimirMikulic","description":"🚀 Parcel plugin that allows you to specify a custom dist structure.","archived":false,"fork":false,"pushed_at":"2023-07-13T00:19:35.000Z","size":286,"stargazers_count":104,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-15T00:37:15.908Z","etag":null,"topics":["assets-management","javascript","parcel","parcel-plugin","web"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/parcel-plugin-custom-dist-structure","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/VladimirMikulic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"ko_fi":"vladimirmikulic"}},"created_at":"2020-03-14T14:45:52.000Z","updated_at":"2024-08-27T04:43:53.000Z","dependencies_parsed_at":"2024-06-20T21:49:52.503Z","dependency_job_id":"433f93b7-1693-462d-93ac-6d1aab2eb92b","html_url":"https://github.com/VladimirMikulic/parcel-plugin-custom-dist-structure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirMikulic%2Fparcel-plugin-custom-dist-structure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirMikulic%2Fparcel-plugin-custom-dist-structure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirMikulic%2Fparcel-plugin-custom-dist-structure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirMikulic%2Fparcel-plugin-custom-dist-structure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VladimirMikulic","download_url":"https://codeload.github.com/VladimirMikulic/parcel-plugin-custom-dist-structure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230501172,"owners_count":18236061,"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":["assets-management","javascript","parcel","parcel-plugin","web"],"created_at":"2024-11-09T07:19:47.485Z","updated_at":"2024-12-19T21:10:31.961Z","avatar_url":"https://github.com/VladimirMikulic.png","language":"JavaScript","funding_links":["https://ko-fi.com/vladimirmikulic"],"categories":[],"sub_categories":[],"readme":"# parcel-plugin-custom-dist-structure\n\n![Version](https://img.shields.io/npm/v/parcel-plugin-custom-dist-structure)\n![Downloads](https://img.shields.io/npm/dw/parcel-plugin-custom-dist-structure)\n[![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](#)\n[![Twitter: VladoDev](https://img.shields.io/twitter/follow/VladoDev.svg?style=social)](https://twitter.com/VladoDev)\n\n\u003e 🚀 Parcel plugin that allows you to specify a custom dist structure.\n\n*This is the plugin for Parcel v1. [@gatsbyjs/parcel-namer-relative-to-cwd](https://www.npmjs.com/package/@gatsbyjs/parcel-namer-relative-to-cwd) can be used for Parcel v2.*\n\n## :package: Installation\n\n```shell\n# Installs the plugin and saves it as a development dependency\nnpm i parcel-plugin-custom-dist-structure --save-dev\n```\n\n## :cloud: Usage\n\nAfter you've installed the plugin, you'll need to specify configuration for it in `package.json`.\n\nThe plugin configuration is very simple, but also very flexible.\n\nIt will generate the structure you specify in the configuration object while also handle all your imports (css, images, js...) which makes it suitable for all use cases, from simple websites all the way to complex React/Angular/Vue projects.\n\nExample configuration object in `package.json`:\n\n```jsonc\n\"customDistStructure\": {\n  \"config\": {\n    // Output JS files to dist/js folder\n    \".js\": \"js\",\n    // Output JPG and PNG files to dist/images folder\n    \"images\": [\n      \".jpg\",\n      \".png\"\n    ],\n    // General idea\n    \".fileExtension\": \"folder/in/dist\",\n    \"folder/in/dist\": [ \".file\", \".extensions\" ]\n  },\n  \"options\": {\n    // Enable plugin in development mode (default: false)\n    \"development\": true\n  }\n}\n```\n\n\u003e ⚠️ NOTE: In order for this plugin to work, Parcel needs to be installed as a project dependency (globally installed `parcel` won't work)\n\n## :sparkles: Run tests\n\nThe plugin uses [Jest](https://jestjs.io/) for running tests.\n\nJest will execute all `.test.js` files in the `test` folder.\n\n```sh\nnpm test\n```\n\n## :man: Author\n\n**Vladimir Mikulic**\n\n- Twitter: [@VladoDev](https://twitter.com/VladoDev)\n- Github: [@VladimirMikulic](https://github.com/VladimirMikulic)\n- LinkedIn: [@vladimirmikulic](https://www.linkedin.com/in/vladimir-mikulic/)\n\n## :handshake: Contributing\n\nContributions, issues and feature requests are welcome!\n\n## :pencil: License\n\nThis project is licensed under [MIT](https://opensource.org/licenses/MIT) license.\n\n## :man_astronaut: Show your support\n\nGive a ⭐️ if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladimirmikulic%2Fparcel-plugin-custom-dist-structure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladimirmikulic%2Fparcel-plugin-custom-dist-structure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladimirmikulic%2Fparcel-plugin-custom-dist-structure/lists"}