We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Curious.
Is there a way to pre-define file names for the two .js files generated by the styleguide build process?
.js
Currently, those files appear to be "versioned". In my case the names are bundle.a538a71f.js and 0.4a3876a7.js respectively.
bundle.a538a71f.js
0.4a3876a7.js
I'd appreciate being able to change them to bundle.js and 0.js.
bundle.js
0.js
I use React Styleguidist in combination with Docusaurus and need to add the paths to both these files manually, to the template.
The text was updated successfully, but these errors were encountered:
They are defined here:
react-styleguidist/scripts/make-webpack-config.js
Lines 62 to 63 in 7b8f160
You'll have to use dangerouslyUpdateWebpackConfig option to change them: https://react-styleguidist.js.org/docs/configuration#dangerouslyupdatewebpackconfig
dangerouslyUpdateWebpackConfig
Sorry, something went wrong.
So, the solution is:
dangerouslyUpdateWebpackConfig(webpackConfig, env) { webpackConfig.output.filename = 'build/bundle.js' webpackConfig.output.chunkFilename = 'build/[name].js' return webpackConfig }
No branches or pull requests
Curious.
Is there a way to pre-define file names for the two
.js
files generated by the styleguide build process?Currently, those files appear to be "versioned". In my case the names are
bundle.a538a71f.js
and0.4a3876a7.js
respectively.I'd appreciate being able to change them to
bundle.js
and0.js
.I use React Styleguidist in combination with Docusaurus and need to add the paths to both these files manually, to the template.
The text was updated successfully, but these errors were encountered: