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

Exclude files #55

Open
cluwong opened this issue Nov 29, 2019 · 6 comments
Open

Exclude files #55

cluwong opened this issue Nov 29, 2019 · 6 comments

Comments

@cluwong
Copy link

cluwong commented Nov 29, 2019

There are some css and js files in the project that should not compress. I can't seem to find an option to exclude these files. Is there a way to do this?

@skeeks-semenov
Copy link
Owner

There is no such opportunity now

@adoerler
Copy link

adoerler commented Dec 2, 2019

Hi cluwong,

as I'm looking for a way to exclude some files too, I've found this pull request which seems to do what we need: #25

FYI: I didn't try this yet. Please let me now, if it works for you.

@skeeks-semenov
Copy link
Owner

Perhaps this is what you need. But I don’t really like this solution, because you cannot control the order of the connected files in it.

And ideally, you need to do something more serious this task.

@adoerler
Copy link

adoerler commented Dec 2, 2019

Hi skeek-semenov,

unfortunately you are right, the #25 approach is not ideal.
Additionally it will not work if appendTimestamp is enabled in AssetManager.

BR

@nomadtechiemike
Copy link

So there is currently no way to not compress certain assess from being compressed, I am using tinymce widget but it will not load if I am using this, how about an option to only run on front/landing page? it works great for site load times.

@skeeks-semenov
Copy link
Owner

You can choose not to use this component on a specific page of the site.

Use a construct call at the beginning of the page

<?php \Yii::$app->assetsAutoCompress->enabled = false; ?>

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

4 participants