ColdBox Elixir
v1.x
v1.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
  • BrowserSync
  • Vue.js Integration
  • Writing Elixir Extensions
Powered by GitBook
On this page
  • mix.themes
  • mix.contentbox
Edit on Git

ContentBox Integration

PreviousMixing in tasks from ColdBox ModulesNextCopying Files & Directories

Last updated 6 years ago

ColdBox Elixir has a few helper methods when working in a ContentBox app.

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

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

These two methods work just like a call to mix.modules with some different defaults set.

For a refresher on how mix.modules and elixir-module.js files work, see the

mix.themes

This method will look inside the modules_app/contentbox-custom/_themes directory for any folders with a elixir-theme.js file. The elixir-theme.js file is identical to a elixir-module.js file.

mix.contentbox

This method will look inside the modules_app/contentbox-custom/_modules directory for any folders with a elixir-module.js file.

modules docs.