Rebuild node-sass (#3002)

Got an error in asset precompile on Heroku:
Module build failed: Error: ENOENT: no such file or directory, scandir '/tmp/.../node_modules/node-sass/vendor'

ref: https://github.com/rails/webpacker#troubleshooting
th-downstream
Daigo 3 Dango 8 years ago committed by Eugen Rochko
parent df4b9580d4
commit cb2738f6d0

@ -10,7 +10,8 @@
"storybook": "start-storybook -p 9001 -c storybook", "storybook": "start-storybook -p 9001 -c storybook",
"test": "npm run test:lint && npm run test:mocha", "test": "npm run test:lint && npm run test:mocha",
"test:lint": "eslint -c .eslintrc.yml --ext=js --ext=jsx app/javascript/", "test:lint": "eslint -c .eslintrc.yml --ext=js --ext=jsx app/javascript/",
"test:mocha": "mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/*.test.jsx" "test:mocha": "mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/*.test.jsx",
"postinstall": "npm rebuild node-sass"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

Loading…
Cancel
Save