Laravel Mix String Replace
This extension adds support for string-replace-loader to Laravel Mix.
Installation
npm i -D laravel-mix-string-replace
Usage
Require the extension inside your webpack.mix.js
and add string replace configurations like this:
const mix = ; ; mix // replace the text "GIT_VERSION" with text provided by the function getVersionTag
Note that this plugin is likely to change to clean up the interface before it reaches version 1.0.0.
For more information about string-replace-loader configurations please refer to their documentation.