Hi,
I work on a website with many css files. To improve the performance of
the site I would to merge all my css file into one on the production
site.
I know I could do this using plugins, but I heard it is possible
natively within rails.
I work on a website with many css files. To improve the performance of
the site I would to merge all my css file into one on the production
site.
I know I could do this using plugins, but I heard it is possible
natively within rails.
Does someone know what it is?
See the :cache => true option of stylesheet_link_tag
You don’t have to use true either - you can use a string (so if you have
more than one layout each using a different set of stylesheets you can
create individual cache files for each layout).
I work on a website with many css files. To improve the performance of
the site I would to merge all my css file into one on the production
site.
I know I could do this using plugins, but I heard it is possible
natively within rails.