Writing Elixir Extensions
mergeConfig
mergeConfigconst elixir = require("coldbox-elixir");
elixir.config.mergeConfig({
// custom webpack config goes here
});Custom Ingredients
const elixir = require("coldbox-elixir");
elixir.config.addIngredient("nameOfIngredient", () => {
// function to run when called (mix.nameOfIngredient());
// any parameters passed to the `mix.nameOfIngredient()` call will be available in the function.
// The `this` scope refers to the ElixirConfig object, so methods like `this.mergeConfig` are available.
})Last updated