Replies: 1 comment
-
That is valid solution |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
For certain assets in our project we don't want the exported filename to change so we used to override the default file-loader asset name setting via an inline loader syntax:
import File from '-!file-loader?name=[name].[ext]!./file.ext';
I would like to reimplement the same feature in Asset Modules and here is what I have so far using
generator.filename
.And it works:
import File from './file.ext?name=[name][ext]';
My question is if there is a better way to do that?
Beta Was this translation helpful? Give feedback.
All reactions