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

[Bug]: "files" is an array, but does not handle multiple files #1317

Open
1 task done
the-hotmann opened this issue Jan 11, 2025 · 0 comments
Open
1 task done

[Bug]: "files" is an array, but does not handle multiple files #1317

the-hotmann opened this issue Jan 11, 2025 · 0 comments
Labels

Comments

@the-hotmann
Copy link

the-hotmann commented Jan 11, 2025

Describe the bug

I use the GRUNT plugin.
When purging from a glob, I expirienced, that when I have multiple target files, it just takes the first one.

To Reproduce

        purgecss: {
            my_target: {
                options: {
                    content: ['../embed/frontend/templates/**/*.html', '../embed/frontend/assets/**/*.js']
                },
                files: {
                    'css/app.min-purge.css': ['css/test1.css', 'css/test2.css'],
                },
            },
        },

Expected Behavior

I expected, that all files in "files" are combined and then purged.

Environment

These are my grunt dependencies:

"dependencies": {
    "bootstrap": "5.3.3",
    "grunt": "1.6.1",
    "grunt-cli": "1.5.0",
    "grunt-contrib-cssmin": "5.0.0",
    "grunt-contrib-uglify": "5.2.2",
    "grunt-import": "1.0.3",
    "grunt-purgecss": "7.0.2",
    "htmx.org": "^2",
    "jquery": "3.7.1",
    "load-grunt-tasks": "5.1.0",
    "select2": "4.1.0-rc.0",
    "select2-bootstrap-5-theme": "1.3.0"
  }

I use debian 11 with:

# node --version
v17.9.0
# yarn --version
1.22.22
# npm --version
11.0.0

Add any other context about the problem here

I guess this at some point worked, but I dont know when, since I dont often touch this.

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant