ColdBox Elixir
v4.x
v4.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
  • 4.0.0
  • 3.0.0
  • 2.0.0
  • 1.1.0
  • 1.0.0

Changelog

4.0.0

No API changes, but lots of dependency changes. You'll want to remove all node_modules so Elixir can install the needed dependencies and version.

  • Node 16+

  • Webpack 5

  • Node Sass has been removed in favor of Dart Sass

    • Removes Python dependency

    • Removes usages of node-gyp

  • Supports Vue 2 and Vue 3

After the installation, you may notice old Webpack plugins that are no longer needed as of Webpack 5. You may safely remove these.

You will need to tweak your package.json scripts to account for Webpack 5:

{
    "scripts": {
        "dev": "webpack --node-env development",
        "watch": "npm run dev -- --watch",
        "prod": "webpack --node-env production"
    }
}

Lastly, we've introduced a new enableDevtools flag that can be used to force devtools in production environments:

const elixir = require("coldbox-elixir");

elixir.enableDevtools = true;

module.exports = elixir(mix => {
    // ...
});

You do not need to do this for non-production environments. The devtools will be enabled automatically there.

3.0.0

  • Major upgrade to ColdBox Elixir. No longer mirroring Laravel Elixir.

  • All compilation is done through Webpack instead of Gulp.

  • Removed the following methods:

    • mix.less

    • mix.stylus,

    • mix.scripts

    • mix.scriptsIn

    • mix.webpack

    • mix.browserify,

    • mix.rollup

    • mix.version

    • mix.exec

    • mix.task

  • PostCSS support is now automatic if a postcss.config.js file is found in the project root.

2.0.0

  • Updated to stay current with Laravel Elixir 6.0.0.

  • Deprecated mix.babel() in favor of mix.browserify(), mix.webpack, mix.rollup, or similar module bundlers.

  • Nicer console output.

  • Broke out first party extensions from the core (to keep in line with Laravel Elixir 6.0.0)

  • Helpful warnings when trying to use methods provided by a first party extension.

1.1.0

  • Travis Support

  • BDD via TestBox fixes

  • Updated all dependencies to latest versions

  • Gulp tasks for compilation, tests and watchers

  • Test App additions for testing direct gulp integrations

  • If not tasks defined in the user's gulpfile, just a message is shown instead of an exception

  • Removed coffeescript support, no longer needed

  • Added new config map for appPaths to support all ColdBox conventions

  • Vueify core support view browserify for Vue.js components

  • Included a new template folder which helps setting up new elixir based projects

1.0.0

  • Initial Port to ColdBox

PreviousIntroductionNextMigration Guide

Last updated 3 years ago

The entire Elixir configuration object has changed. See for details.

The elixir and elixirPath helper functions in ColdBox 5.0.0 and earlier are incompatible with ColdBox Elixir 3.0.0. Please see the for updated helper functions.

Configuration Options
Versioning docs
coldbox-elixir-browserify
coldbox-elixir-browsersync
coldbox-elixir-rollup
coldbox-elixir-stylus
coldbox-elixir-vue
coldbox-elixir-webpack