Hello,
I'm using css-modulesify like so:
browserify -t [babelify --presets es2015 --presets react --presets stage-0] -p [css-modulesify --global -o client2/public/bundle.css] -o client2/public/bundle.js client2/lib/main.jsx
... along with the require code:
import styles from 'react-virtualized/styles.css';
... however, this creates scoped class names such as ._node_modules_react_virtualized_styles__FlexTable__headerColumn, which breaks the CSS for the module. Please bear in mind that I'm quite new to react and browserify so I may just be being thick.
Is there a way of turning off the scoping from the command line? Or if not, is there something I'm missing that would make my components work normally with the scope?
Thanks
Matt
Hello,
I'm using css-modulesify like so:
browserify -t [babelify --presets es2015 --presets react --presets stage-0] -p [css-modulesify --global -o client2/public/bundle.css] -o client2/public/bundle.js client2/lib/main.jsx... along with the require code:
... however, this creates scoped class names such as
._node_modules_react_virtualized_styles__FlexTable__headerColumn, which breaks the CSS for the module. Please bear in mind that I'm quite new to react and browserify so I may just be being thick.Is there a way of turning off the scoping from the command line? Or if not, is there something I'm missing that would make my components work normally with the scope?
Thanks
Matt