{"id":19291006,"url":"https://github.com/kernix13/parcel-sass-setup","last_synced_at":"2025-10-31T10:45:51.931Z","repository":{"id":111829967,"uuid":"533046746","full_name":"Kernix13/parcel-sass-setup","owner":"Kernix13","description":"Notes on how to setup Parcel instead of Webpack as a bundler, specifically for using SASS in your project.","archived":false,"fork":false,"pushed_at":"2023-01-09T05:55:30.000Z","size":341,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T20:09:30.150Z","etag":null,"topics":["parcel","parcel-bundler","sass"],"latest_commit_sha":null,"homepage":"","language":"SCSS","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/Kernix13.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":"2022-09-05T20:14:46.000Z","updated_at":"2022-11-17T23:21:41.000Z","dependencies_parsed_at":"2023-06-04T01:30:26.506Z","dependency_job_id":null,"html_url":"https://github.com/Kernix13/parcel-sass-setup","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/Kernix13%2Fparcel-sass-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kernix13%2Fparcel-sass-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kernix13%2Fparcel-sass-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kernix13%2Fparcel-sass-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kernix13","download_url":"https://codeload.github.com/Kernix13/parcel-sass-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240395750,"owners_count":19794573,"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":["parcel","parcel-bundler","sass"],"created_at":"2024-11-09T22:23:20.725Z","updated_at":"2025-10-16T11:21:40.230Z","avatar_url":"https://github.com/Kernix13.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting up Parcel\n\nNotes for using Parcel instead of Webpack as a bundler:\n\n1. Reduces the size of your app\n1. No config code splitting / organization\n1. Automatic transforms (SASS, JS modules)\n1. Hot module replacement\n1. Complile SASS to CSS\n1. Working with images\n1. Way easier than Webpack!\n\nCheck out the [Parcel on GitHub](https://github.com/parcel-bundler/parcel) for folders like `.vscode` and `.husky`, and files like `.editorconfig`, `.prettierignore` and `.prettierrc`.\n\nCheck the notes in `notes_videos.md` and `notes_parcelDocs.md` for installing and getting started with PArcel.\n\n## Installation and setup\n\n**From Parcel docs**:\n\n```bash\nnpm install --save-dev parcel\n```\n\n- create `src/index.html` and add \n\n```html\n\u003clink rel=\"stylesheet\" href=\"styles.css\" /\u003e\n\u003cscript type=\"module\" src=\"app.js\"\u003e\u003c/script\u003e\n```\n\n- In `package.json` add:\n\n```bash\n\"scripts\": {\n    \"start\": \"parcel\",\n    \"build\": \"parcel build\"\n```\n\n- run `npm run dev` to run the dev server and `npm run build` to build the production files\n\n\u003cbr\u003e\n\n**From video notes**:\n\n```bash\nnpm install --save-dev parcel\nnpm install --save-dev sass\n```\n\nThen:\n\n1. Create a folder named `src` in the root of your project.\n1. Create `index.html` in the `src` folder.\n1. Create an `scss` folder inside `src` and inside there create `main.scss`.\n1. Create a `js` folder inside `src` and inside there create `main.js`.\n1. Add `\u003clink rel=\"stylesheet\" href=\"./scss/main.scss\" /\u003e` in the `\u003chead\u003e` tag of the HTML file.\n1. Add `\u003cscript type=\"module\" src=\"./js/main.js\"\u003e\u003c/script\u003e` before the `\u003cbody\u003e` tag of the HTML file.\n1. Then add the following scripts to `package.json` for Parcel:\n\n```json\n\"scripts\": {\n  \"dev\": \"parcel src/index.html\",\n  \"build\": \"parcel build src/index.html\"\n},\n```\n\nInstallation and setup is nearly identical for the notes from Parcel and the Video notes with the exception of the `package.json` scripts. I changed `\"main\": \"index.js\",` to `\"main\": \"src/index.js\",` in my `package.json` file, so I think the Parcel scripts are the correct ones. Just double-check the `\"source\"` and `\"main\"` values.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernix13%2Fparcel-sass-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernix13%2Fparcel-sass-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernix13%2Fparcel-sass-setup/lists"}