Yii Framework Forum: Assets Bundle - Minify Feature - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Assets Bundle - Minify Feature

#1 User is offline   lubosdz 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 112
  • Joined: 25-July 10
  • Location:Slovakia, Bratislava

Posted 01 September 2013 - 05:17 AM

Hi,

I believe the possibility of bundling CSS / JS files into a single file would be welcomed feature.
This would speed up development as well as the site responses.

Currently, particularly when building responsive sites there is often looots of CSS/JS files and it is a pain to build packaged versions for each file.

The idea is as follows - if we are to publish few files e.g.:

- basic1.css (POS_HEAD)
- left-menu.css (POS_HEAD)
- widgets.css (POS_HEAD)
- init.js (POS_HEAD)
- widgets.js (POS_READY)
- responsive.js (POS_READY)


then clientscript (or assetmanager - not sure which is ported into Yii2) would create and publish only 3 files rather than 6 files:

- head_pos.css    (including basic1.css, left-menu.css, widgets.css)
- head_pos.js     (including init.js)
- ready.js        (including widgets.js, responsive.js)


Will such a feature be supported in Yii2 ?

Thank you.
Cheers
Lubos
Yii extension: Captcha Extended

Greatest discoveries in 22nd century will be about the gravitation. | http://www.synet.sk | http://ipdf.sk
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,134
  • Joined: 17-January 09
  • Location:Russia

Posted 01 September 2013 - 01:09 PM

It's currently is. Check console app.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users