Skip to content

Commit ec97449

Browse files
authored
Add app.json, mod client/package.json for node-sass deploy (shakacode#389)
* Add app.json and modify client/package.json Because of Node-sass issues with yarn Per yarnpkg/yarn#1981 (comment)
1 parent 68f2b79 commit ec97449

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"NODE_MODULES_CACHE": "false",
4+
}
5+
}

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"homepage": "https://github.com/shakacode/react-webpack-rails-tutorial",
2727
"scripts": {
28+
"postinstall": "npm rebuild node-sass",
2829
"test": "NODE_PATH=./app mocha --compilers js:babel-core/register --require ./app/libs/testHelper.js --require ./app/libs/testNullCompiler.js 'app/**/*.spec.@(js|jsx)'",
2930
"test:debug": "yarn run test -- --debug-brk",
3031
"start": "babel-node server-express.js",

0 commit comments

Comments
 (0)