Skip to main content

You're viewing the documentation for an older version of 文档中心. Consider upgrading your project to version 4.x

  • Introduction
  • Development

Development

Dok comes with a simple Vite configuration that ships with every new Statamic site so you should feel right at home.

#Building in development

shell
npm run dev
shell
# For control panel assets, use this instead.
npm run cp:dev

#Building for production

shell
npm run build
shell
# For control panel assets, use this instead.
npm run cp:build