Simple gulp-batch-replace wrapper for Laravel Elixir.
npm install laravel-elixir-replace#Rename Ingredient for Laravel Elixir
This is a simple gulp-batch-replace wrapper ingredient for Laravel Elixir.
npm install --save-dev laravel-elixir-replace
Add it to your Elixir-enhanced Gulpfile, like so:
``javascript
var elixir = require('laravel-elixir');
require('laravel-elixir-replace');
var replacements = [
['fonts/', '../fonts/'],
['images/', '../images/']
];
elixir(function(mix) {
mix.replace('public/css/app.css', replacements);
});
`
This would replace any instance of fonts/ to ../fonts/ and images/ to ../images/ in your public/css/app.css file.
The parameters are replace(file, replacements, output)
output is optional. If not specified, it defaults to the same file as input.
To see what replacements` can be, see the gulp-batch-replace docs
If you find a bug, please post an issue on GitHub describing the problem.
Or better yet, make a pull request with the solution.
This is open-sourced software licensed under the MIT license