glamor
glamor copied to clipboard
How do you actually use speedy() mode?
I'm not 100% clear how I actually use the function (speedy()
)? At what point would I call the function? Could someone provide a code snippet example of when that would be called to put it in speedy mode? Do I just run it once when the app loads? Or every time I import the css()
function? any help would be great, thanks!
in general you don't have to do anything. by default, it stays off in dev mode, and comes on when you bundle with NODE_ENV=production
.
alternately, if you're doing this manually, this should be the first line of code you run in your app
import {speedy} from 'glamor'
speedy(true)
again, you shouldn't have to do this in most cases.
can you tell me more details about your build setup? happy to help.