Skip to content
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

Using collections in development mode #170

Open
dronchik opened this issue Apr 13, 2015 · 4 comments
Open

Using collections in development mode #170

dronchik opened this issue Apr 13, 2015 · 4 comments

Comments

@dronchik
Copy link

I want to combine & minify my assets only in production mode, but in development mode I don't need todo this because it make debugging more complicated. How can I do this?

To allow minifications only in production mode I can remove filters from global.php and add to local.php in production environment and it will work great.

How can I do the same trick with collection resolvers?

Thanks!

@RWOverdijk
Copy link
Owner

So if I understand this correctly... You want to load all assets individually for development, and combine them in a collection for production?

If so, that's not really possible right now. You can skip the minify filter using local configs.

We could create a ViewHelper that adds the assets conditionally based on a config. I'd accept a PR for that.

@dronchik
Copy link
Author

Yes, I want to load all assets individually for development, and combine them in a collection for production. How this ViewHelper will work?

@RWOverdijk
Copy link
Owner

@dronchik The view helper would basically extend the default headScript helper. You'd be able to configure it (local config) and have it add all files in a collection individually. I'm not sure how this would work internally.

@dronchik
Copy link
Author

Sounds good:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants