ColdBox Elixir
v3.x
v3.x
  • Introduction
  • Changelog
  • Migration Guide
  • Installation
  • Running Elixir
  • Configuration Options
  • Working With Stylesheets
  • Working With Scripts
  • Versioning Cache Busting
  • Mixing in tasks from ColdBox Modules
  • ContentBox Integration
  • Copying Files & Directories
  • Deleting Files & Directories
  • Environment Variables
  • BrowserSync
  • Vue.js Integration
  • Writing Elixir Extensions
Powered by GitBook
On this page
Edit on Git

Configuration Options

PreviousRunning ElixirNextWorking With Stylesheets

Last updated 6 years ago

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 ).

There are a few additional config options on the Elixir object.

  • elixir.isProduction

    • By default checks for the production flag from the terminal (-p)

  • elixir.rootPath

    • The root of the project

  • elixir.config

    • A configured instance of ElixirConfig

  • elixir.versioning

    • Defaults to elixir.isProduction

webpack-merge