how to hide development assets in symfony2? -
i have folder construction js , css-files in public folder this:
public js dev prod css dev prod basically dev files contain not-minified files. prod folder contains minified files. prefer not have dev-files publicly available , load them when developer in dev-mode.
how go this?
you have no need prod version of files , should delegate creation of assetic compiles them, default, /web/{css|js}/ directory.
read more assetic here: http://symfony.com/doc/current/cookbook/assetic/index.html
pay special attending filters section..
symfony2 assets
No comments:
Post a Comment