Replies: 1 comment
-
I did not find a good solution for this, unfortunately. I've opted to use the content for both the frontend and backend for all CSS files, so some of them are likely larger than necessary, but I think that the upsides outweigh the downsides for us. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm working on an app and trying to cut back my CSS size as much as possible.
I have this sort of file structure:
Currently, I'm building an
admin.css
file and afrontend.css
file. I'd like to figure out how to set content up for PurgeCSS such that it doesn't check anything in an "admin" folder when buildingfrontend.css
and doesn't check anything in a "frontend" folder when buildingadmin.css
.Effectively,
admin.css
should be purging based on the contents of:And
frontend.css
should be purging based on the contents of:I'm currently using the
laravel-mix-purgecss
package, and I think I've figured out how to build these two configurations separately, however, I'm having trouble with thecontent
setup for PurgeCSS.This is what I'm currently trying for the
admin.css
file:However, it doesn't seem to be having any effect. The file size is exactly the same, even though I have distinct admin styles that aren't used on the frontend. Can anyone see what I'm doing wrong or point me in the right direction? I'm fairly new to Linux globbing, so maybe I'm just not setting things up correctly.
Thanks!
nsnyder
Beta Was this translation helpful? Give feedback.
All reactions