Change your current terminal directory to the project root with
Then run tasks with
npm run task-name, e.g.
npm run dev.
| ||Starts the development server with file watching and auto reload.|
| ||Builds production-ready files (output to |
| ||Print the webpack configuration to the console.|
| ||Lints CSS with stylelint.|
Tasks are pre-defined
package.json scripts for the corresponding
.eslintrc.js. Per-file rules can be set with comments (e.g.
// eslint-disable no-console). Exclude files from linting with an
.eslintignore configuration file.
stylelint monitors the code for errors and consistency deviations defaulting to the Sass Guidelineswith a few additions. Global stylelint rules are set in
stylelint.config.js. Per-file rules can be set with comments (e.g.
/* stylelint-disable selector-max-id */). Exclude CSS files from linting with a
.stylelintignore configuration file.
dev task serves the web UI with a built-in web server. The
build task generates HTML for static file servers.