-
-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asset processing with Gulp #105
Comments
I'm not really familiar with Gulp. Yii-wise it's same as Grunt i.e. turning off asset manager. |
Ok) |
Yes, It's same as Grunt. Completely. I'm using Gulp for Yii projects. I think such recipe will almost duplicate Gulp recipe. Maybe better to merge them in one recipe: "Asset processing with frontend task runners" or something like this. Btw one of the problem is Yii2 extensions. They are registering their own source files with help of assets. As result we have a lot of separated sources which decrease performance. Will be excellent to write a recipe about how to manage all of this: Yii extensions and Gulp/Grunt |
I think two seaparate recipes make sense in this case. In case of extensions you have to specify all these asset files manually for each extension. |
This is a problem. A lot of manual work (in comparison) and if extension structure is changed something might be broken. Might it be a proposal for Yii2? To solve such issue somehow |
How? |
Is it possible not to publish but to move all source files inside a special dir? Automatically. In order not to find all of them manually. And then gulp/grunt compresses them in one file. |
Moving files inside a special dir is publishing. Gulp is JS tool, it can't read PHP classes. |
A special tool that generates map from asset bundles could be created though. |
But it would have no idea which bundles to use and which not to use. |
That would be too complicated. |
Hello @samdark!
What about
Asset processing with Gulp
receipt?Nowdays Gulp is popular task manager so it wouldn't be redundant to add this receipt as well as Grunt one)
Thanks in advance!
The text was updated successfully, but these errors were encountered: