Support SVGs can be placed in a custom output directory #29339
jasonhuang-sky
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks, when using the Nx Webpack plugins to generate the Webpack configuration, we can use NxReactWebpackPlugin to handle React SVGR, which is great, but it doesn't provide any options to place the extracted SVGs in a custom directory after the build, rather than just in the
output
root directory.e.g.
If we use the above webpack configuration, the extracted SVGs will be placed in the directory
dist/apps/demo
, but we may would like to put all these SVGs in a custom directory for easy management, such asdist/apps/demo/media
, and unfortunately applyReactConfig does not provide such an option.So my proposal is, could we add an option to the
applyReactConfig
function to configure a customoutDir
?e.g.
The default value of the options
outDir
is''
, but for my case, we can configure theoutDir
asstatic/
, what do you think?Beta Was this translation helpful? Give feedback.
All reactions