{"id":15041617,"url":"https://github.com/bahmutov/rebuild-node-sass","last_synced_at":"2025-04-14T20:23:03.922Z","repository":{"id":57349093,"uuid":"95480783","full_name":"bahmutov/rebuild-node-sass","owner":"bahmutov","description":"Rebuilds node-sass but only if needed","archived":false,"fork":false,"pushed_at":"2017-09-21T20:34:58.000Z","size":3,"stargazers_count":21,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T08:41:26.845Z","etag":null,"topics":["node-sass","npm","rebuild","sass"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bahmutov.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}},"created_at":"2017-06-26T19:14:41.000Z","updated_at":"2020-01-23T14:33:13.000Z","dependencies_parsed_at":"2022-08-29T14:41:23.102Z","dependency_job_id":null,"html_url":"https://github.com/bahmutov/rebuild-node-sass","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Frebuild-node-sass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Frebuild-node-sass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Frebuild-node-sass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Frebuild-node-sass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/rebuild-node-sass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952948,"owners_count":21188526,"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":["node-sass","npm","rebuild","sass"],"created_at":"2024-09-24T20:46:17.416Z","updated_at":"2025-04-14T20:23:03.902Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","readme":"# rebuild-node-sass\n\n\u003e Rebuilds node-sass but only if needed\n\n[![NPM][npm-icon] ][npm-url]\n\n[![Build status][ci-image] ][ci-url]\n[![semantic-release][semantic-image] ][semantic-url]\n\n## Use\n\n```sh\nnpm install --save-dev rebuild-node-sass node-sass\n```\n\nThen before build (when `node-sass` is probably used), call `rebuild-node-sass`\nto make sure it is ready\n\n```json\n{\n  \"scripts\": {\n    \"prebuild\": \"rebuild-node-sass\",\n    \"build\": \"...\"\n  }\n}\n```\n\n## Testing\n\nTo execute in a different environment, for example when working on Mac, we\ncan install Mac Sass binary `npm install` and then switch to Docker\n\n```sh\ndocker run -v $PWD:/src -w /src -it node /bin/bash\n```\n\nwhich produces the following output (abridged)\n\n```sh\nroot@0d0cd593e320:/src# ./rebuild.sh\nnpm info it worked if it ends with ok\nnpm info using npm@5.0.0\nnpm info using node@v8.0.0\nnpm info ok\n/src/node_modules/node-sass/lib/binding.js:15\n      throw new Error(errors.missingBinary());\n...\nBinary found at /src/node_modules/node-sass/vendor/linux-x64-57/binding.node\nTesting binary\nBinary is fine\nnode-sass@4.5.3 /src/node_modules/node-sass\n```\n\n[npm-icon]: https://nodei.co/npm/rebuild-node-sass.svg?downloads=true\n[npm-url]: https://npmjs.org/package/rebuild-node-sass\n[ci-image]: https://travis-ci.org/bahmutov/rebuild-node-sass.svg?branch=master\n[ci-url]: https://travis-ci.org/bahmutov/rebuild-node-sass\n[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-url]: https://github.com/semantic-release/semantic-release\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Frebuild-node-sass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Frebuild-node-sass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Frebuild-node-sass/lists"}