Skip to content

Commit

Permalink
fix: Deactivate cssmodules when transpiling
Browse files Browse the repository at this point in the history
cozy-ui stylus utility helpers behave differently if we have CSSMODULES
to true or false. If the CSSMODULES is not set to false, we end up
with :global selectors in the resulting CSS file. This does not work
well with safari which ignores the rules under :global.
  • Loading branch information
ptbrowne committed Nov 13, 2020
1 parent 32918ba commit 4efead4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"travis-deploy-once": "travis-deploy-once",
"example": "env USE_REACT=true nf -j examples/Procfile start",
"transpile:js": "env BABEL_ENV=transpilation babel -D src/ --out-dir transpiled/ --verbose",
"transpile:css": "node_modules/.bin/stylus src/styles/index.styl -u ./node_modules/cozy-ui/stylus/index.js -o transpiled/cozy-bar.css",
"transpile:css": "env CSSMODULES=false node_modules/.bin/stylus src/styles/index.styl -u ./node_modules/cozy-ui/stylus/index.js -o transpiled/cozy-bar.css",
"transpile": "yarn run transpile:js && yarn run transpile:css"
},
"devDependencies": {
Expand Down

0 comments on commit 4efead4

Please sign in to comment.