Multiple Config Files

As your Acetate installation grows in complexity you can reduce complexity by seperating out your configuration into multupile files with the acetate.require helper.

acetate.config.js

module.exports = function (acetate) {
  acetate.require('./external.config.js');
}

external.config.js

module.exports = function (acetate) {
  // do additional configuration here
}

You can also require additional configurations directly from NPM.

module.exports = function (acetate) {
  // would require the `common-acetate-helpers` module from NPM.
  acetate.require('common-acetate-helpers');
}

acetate.require will also listen for changes in external configuration helpers and reload itself when in server mode or watch mode.


Edit this Page on GitHub