about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaigo 3 Dango <zunda@users.noreply.github.com>2017-05-12 10:04:41 -1000
committerEugen Rochko <eugen@zeonfederated.com>2017-05-12 22:04:41 +0200
commit66328adf83793844a94b32ec9d4b44523b65a6f0 (patch)
tree936a2e064fdd1383a9128593e899ba9da40c4746
parentb65950bb2e12eaafb1c5419737af7e1f94d901f4 (diff)
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
-rw-r--r--package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json
index 23bc66dac..41bb140e0 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,8 @@
     "storybook": "start-storybook -p 9001 -c storybook",
     "test": "npm run test:lint && npm run test:mocha",
     "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": {
     "type": "git",