string-replace-loader
string-replace-loader copied to clipboard
Replace loader for Webpack
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. Commits f545bdb 3.0.1 c57d4c2 fix a few old XO issues for backport 419250f Fix potential ReDoS (#37) See full diff in compare view [![Dependabot...
```JavaScript { test: /\.(css|js)$/, loader: 'string-replace-loader', exclude: /(node_modules)/, options: { multiple: [ { search: 'ant-', replace: '$$ant' } ] } }, ``` get error 
Hello everyone, I am using Webpack 4.46.0 with "string-replace-loader" 2.3.0. I am not able to replace any strings in my *.json files. I have various "app.json" files in different folders...
```js module.exports = { // ... module: { rules: [ { test: /image\/*$/, loader: 'string-replace-loader', options: { // search: '$', disable search replace:(content)=> { maps.forEach(item => { content = content.replace(item,...
Hello ! I'm having lots of troubles having the callback replace working. I put logs in many places and i'm tempted to say it may come either from ``schema-utils`` or...
`webpack.DefinePlugin` offer a native way to run simple replacements, which covers the first example. I can open a PR that adds a link to this issue as documentation in the...
I'm trying to use this loader on templates, but the problem is that the loader is replacing the name of tags, classes, id and others. I wanna to persist this...
currently - 'replace' function writes to file regardless of change. this trigger other 'watch', in my case - Shopify's 'themekit'. changes i made to fix this: 
Bumps [webpack](https://github.com/webpack/webpack) from 5.4.0 to 5.76.0. Release notes Sourced from webpack's releases. v5.76.0 Bugfixes Avoid cross-realm object access by @Jack-Works in webpack/webpack#16500 Improve hash performance via conditional initialization by @lvivski...
Здравствуйте Валентин, Решил попробовать ваш лоадер, но столкнулся с проблемой. Пусть у нас в HTML файле есть строка с псевдонимом `` Я хочу псевдоним @img/ заменить на реальный путь, например...