ContentBox Integration
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.modulesandelixir-module.jsfiles work, see the modules docs.
mix.themes
mix.themesThis 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
mix.contentboxThis method will look inside the modules_app/contentbox-custom/_modules directory for any folders with a elixir-module.js file.
Last updated