Guides  ›  Assets  ›  Bundle config ← PREV NEXT →

Bundle config

List files in the order they should load.

// app/config/bundle.js
module.exports = {
  css: ['/css/base.css', '/css/app.css'],
  js: ['/js/browser.js', '/js/app.js']
}
// app.js
var server = require('@nodedk/server')
var bundle = require('#app/config/bundle.js')

server({ bundle })

Paths are relative to app/assets. Use Style and Script to render the tags, then Build for production.

Next: Cache →

Tools for business systems.