-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Ignore files based on RegEx list #131
Comments
Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers! |
The minifier only does minify files with the enabled extensions so it will never minify a .gitignore. |
Hi Jose
The file I am most concerned about is the workspace file. It is definitely
being minified. I have the minify on save setting enabled. This file is a
JSON file but it has no extension. Below is a screenshot of the file opened
in VSCode
[image: image.png]
Kind regards
Lee
…On Tue, 12 Oct 2021, 18:27 Jose Gracia Berenguer, ***@***.***> wrote:
The minifier only does minify files with the enabled extensions so it will
never minify a .gitignore.
But it might be a good idea to disable the minimisation via a file
following a specific pattern.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APHLVKVBJ7BGJYHP6WZIS3DUGPPNZANCNFSM5FZEIKQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
A @Josee9988 I would recommend making the option description more clear. From my point of view this should be sufficient and the use cases where there are actually collisions between files that are minified regularly and files that should not be minified are very rare. Most of the time the files are edited so rarely that disabling minify temporarily is absolutely fine. If @LeeCoder139 is fine with the correct option and can continue working, I would note this problem and wait if more issues about collisions come up and if that is the case a pattern ignore option can be implemented. Maybe create a todo or milestone? |
Hi Jose
Ok I didn't know that. I was wondering what jsonc was. I will try it
tomorrow.
Thanks
…On Tue, 12 Oct 2021, 20:03 Cube, ***@***.***> wrote:
A .workspace file is of the filetype "JSON with comments", represented by
jsonc in the settings. Disabling that will turn off the minifier on that
filetype while still minifying normal json files. That is probably
sufficent as a quick workaround.
@Josee9988 <https://github.com/Josee9988> I would recomend making the
option description more clear.
From my point of view this should be sufficent and the usecases where
there are acually colisions between files thate are minified regularly and
files that should not be minified are very rare. Most of the time the files
are eddited so rarly that disabling minify temporarylie is absoloutly fine.
If @LeeCoder139 <https://github.com/LeeCoder139> is fine with the corrcet
option and can continue working, I would note this problem and wait if more
issues about collisions come up and if that is the case a pattern ignore
option can be implemented. Maybe create a todo or milestone?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APHLVKQ7LXSAUMSQJJWKQLLUGP2XTANCNFSM5FZEIKQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi Jose
Your suggestion worked. So I am all good. I still think it is a good idea
to exclude by pattern but of course it is up to you if you want that
feature.
Thanks for your help
Kind regards
Lea Johnson
JiffyTek
…On Fri, 22 Oct 2021 at 01:07, Jose Gracia Berenguer < ***@***.***> wrote:
@LeeCoder139 <https://github.com/LeeCoder139> anything?
Is this issue still relevant?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APHLVKX4PJY25NHIIXRFJJLUIANC7ANCNFSM5FZEIKQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Perfect, I will still maintain this issue open and fix it |
One thout I just had on this matter and wanted to document: Implementing the regex ignroe would also allow useres to ignore specific filetypes ( |
🚀 Feature Request
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
thanks for all your work on this extension. Kind regards Lee
P.S. I haven't really explored the disableJson setting not working for Json files without JSON extension problem it may not be the reason. Also I haven't checked if MinifyAll minifies ".gitignore & .prettierrc" I only added them just to emphasise the need need for a pattern matching ignore setting.
The text was updated successfully, but these errors were encountered: