Build Scripts
This theme uses a set of npm scripts to build and compile the CSS and JavaScript files. Here's a brief explanation of each script:
production
production
Runs all production scripts concurrently:
production:css-app
: Compiles and minifies theapp.css
file using TailwindCSS.production:css-editor
: Compiles and minifies theeditor-style.css
file using TailwindCSS.production:js
: Bundles and minifies theapp.js
file using esbuild.
dev
dev
Runs all development scripts concurrently:
dev:css-app
: Compiles theapp.css
file without minification using TailwindCSS.dev:css-editor
: Compiles theeditor-style.css
file without minification using TailwindCSS.dev:js
: Bundles theapp.js
file without minification using esbuild.
watch
watch
Runs all watch scripts concurrently (watch:css-app
, watch:css-editor
, and watch:js
).
watch:css-app
: Compiles theapp.css
file and watches for changes using TailwindCSS.watch:css-editor
: Compiles theeditor-style.css
file and watches for changes using TailwindCSS.watch:js
: Bundles theapp.js
file and watches for changes using esbuild.
To run any of these scripts, use the npm run
command followed by the script name. For example, to run the watch
script, enter:
npm run watch
Last updated
Was this helpful?