Skip to content
Discussion options

You must be logged in to vote

You can look at https://www.npmjs.com/package/webpack-plugin-replace or https://www.npmjs.com/package/string-replace-webpack-plugin. Or you can look at their source code and implement an own simple solution.

Alternative you can create a small Node.js script which will replace your string on generated and run it after webpack

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alexander-akait
Comment options

Answer selected by blephy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #19182 on February 04, 2025 20:17.