Occasionally you will need to extend Webpack in ways not supported by ColdBox Elixir. In these moments, you can provide your own configuration using the mergeConfig method.
1
const elixir =require("coldbox-elixir");
2
3
elixir.config.mergeConfig({
4
// custom webpack config goes here
5
});
Copied!
The mergeConfig method will merge the object provided with the existing Webpack config using the excellent webpack-merge library.
Custom Ingredients
Ingredients are the name for the methods available on the mix object. You can add an ingredient to your Elixir instance like so: