Guides  ›  CLI  ›  Build ← PREV NEXT →

Build

Build the files listed in Bundle config.

ndk build

This recreates dist, copies app/assets, and combines and minifies your CSS and JavaScript. JavaScript gets a source map.

An optional build step runs before assets are copied:

// deploy/build.js
module.exports = async function () {
  console.log('Preparing assets')
}

Bundle entries must be browser-ready files; the build does not resolve their imports.

Next: Migrate →

Tools for business systems.