Val

Results 19 comments of Val

hi! this is already implemented, please refer to documentation – https://github.com/Va1/string-replace-loader#callback-replacement

hi. there' a test-case written for the callback replacement and it works. can you check if that's approximately how you're approaching callback replacement as well? thanks https://github.com/Va1/string-replace-loader/blob/master/test/index.test.js#L135

hi folks. the mentioned `webpack.DefinePlugin` is, first of all, a plugin, while this codebase is a loader. their use-cases seem to overlap, but are not equal. i am not sure...

as i mentioned in the previous comment, `string-replace-loader` is a loader on contrast to DefinePlugin being a plugin. this means, that it can be used for specific files via regex...

@vronifuchsberger @abdirahmanjama guys, any ETA on when these changes will be released? it's a big pain :(

@tinesoft hi! sorry for the delayed reply. as reloading works fine on PC and fails on mobile, i guess this is the browser-sync issue. but, if "Rebuilding..." is displayed, it...

guys, i've commented on the PR and gonna duplicate here as well: if someone could verify that it works on all webpack versions (1-4), i will make some updates and...

test/demo folder is nice idea! i might work on this in near future. i am not sure of how can this be unit-tested though

@malinushj yeah, i did tests for webpack stuff as part of [other package](https://github.com/Va1/string-replace-loader) developed by me. but i am not sure i understand what we can cover in this package