Skip to content

[AssetMapper] Adding "excluded_patterns" option #50291

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

Merged
merged 1 commit into from
May 12, 2023

Conversation

weaverryan
Copy link
Member

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets None
License MIT
Doc PR Still TODO

Hi!

Invariably, some people will use AssetMapper with certain files that will need to be "built". Examples might be:

A) An assets/app.css that uses Tailwind, and the user builds this manually to assets/build/app.css and includes that file in their pipeline. The source assets/app.css should not be published to public/assets.
B) Similar with SCSS - e.g. all *.scss might be ignored because you are building them yourself.

The new excluded_patterns is a glob, for simplicity, and must match the entire file path - hence examples like */assets/*.scss

Cheers!

@fabpot fabpot force-pushed the asset-mapper-exclude branch from 6666759 to 1c5a1e0 Compare May 12, 2023 14:32
@fabpot
Copy link
Member

fabpot commented May 12, 2023

Thank you @weaverryan.

@fabpot fabpot merged commit 9e82301 into symfony:6.3 May 12, 2023
@weaverryan weaverryan deleted the asset-mapper-exclude branch May 12, 2023 14:35
@fabpot fabpot mentioned this pull request May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants