glamor icon indicating copy to clipboard operation
glamor copied to clipboard

How do you actually use speedy() mode?

Open bluetidepro opened this issue 6 years ago • 1 comments

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!

bluetidepro avatar Aug 25 '17 16:08 bluetidepro

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.

threepointone avatar Sep 02 '17 16:09 threepointone