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

Not able to replace image assets #17

Open
mankittens opened this issue Feb 29, 2020 · 0 comments
Open

Not able to replace image assets #17

mankittens opened this issue Feb 29, 2020 · 0 comments

Comments

@mankittens
Copy link

I've been running this over some image assets that are aliased and getting back "could not replace". When this line executes with a .ts file, it looks like the path is getting combined with the file name to get the full location. But when it executes with a .png file, only the image file name comes back.

const moduleSrc = resolve(apath, modulePathRel);

I wonder if something as simple as path + filename would suffice here, rather than using the resolve function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant