Configuration Options
All of Elixir's configuration is to support Webpack. Most of the custom changes you will make to Elixir will come through the mergeConfig method.
const elixir = require("coldbox-elixir");
elixir.config.mergeConfig({});The mergeConfig method will intelligently merge your new config with the existing Webpack config (thanks to webpack-merge).
There are a few additional config options on the Elixir object.
elixir.isProductionBy default checks for the production flag from the terminal (
-p)
elixir.rootPathThe root of the project
elixir.configA configured instance of
ElixirConfig
elixir.versioningDefaults to
elixir.isProduction
elixir.base64SourceSizeDefaults to 0. When configured as a number of bytes, any assets referenced in the CSS files you compile will be inlined as Base64 objects in your compiled output. ( e.g. 1000000 = 1000kb )
Last updated