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

[Feature Request] Handling duplicate file names #59

Closed
orestesgaolin opened this issue Nov 24, 2020 · 1 comment · Fixed by #78
Closed

[Feature Request] Handling duplicate file names #59

orestesgaolin opened this issue Nov 24, 2020 · 1 comment · Fixed by #78
Assignees
Labels
bug Something isn't working contributions welcome Welcome contribute
Milestone

Comments

@orestesgaolin
Copy link

Sometimes it happens that for compatibility I need to use .png and .svg file with the same name e.g. splash.svg and splash.png.

It would be awesome to automatically generate different field names for these files e.g. splash_svg and splash_png.

@orestesgaolin orestesgaolin changed the title Handling duplicate file names [Feature Request] Handling duplicate file names Nov 24, 2020
@wasabeef wasabeef added bug Something isn't working contributions welcome Welcome contribute labels Nov 24, 2020
@wasabeef wasabeef added this to the 1.4.0 milestone Nov 24, 2020
@lcdsmao lcdsmao self-assigned this Feb 7, 2021
@lcdsmao lcdsmao reopened this Feb 8, 2021
@lcdsmao
Copy link
Member

lcdsmao commented Feb 8, 2021

In the next release, if files have the same base name but the different extension will be handled properly.
For example:

static const AssetGenImage imagesProfileJpg =
AssetGenImage('assets/images/profile.jpg');
static const AssetGenImage imagesProfilePng =
AssetGenImage('assets/images/profile.png');

@wasabeef wasabeef modified the milestones: 1.4.0, 2.0.0 Feb 18, 2021
@lcdsmao lcdsmao closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working contributions welcome Welcome contribute
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants