Move from webpack to esbuild bundler
This commit is contained in:
parent
0aaccb9ea1
commit
1c30b49d3d
10 changed files with 156 additions and 211 deletions
|
|
@ -46,7 +46,7 @@ After changing the code and running `make` again, reload the Cockpit page in
|
|||
your browser.
|
||||
|
||||
You can also use
|
||||
[watch mode](https://webpack.js.org/guides/development/#using-watch-mode) to
|
||||
[watch mode](https://esbuild.github.io/api/#watch) to
|
||||
automatically update the bundle on every code change with
|
||||
|
||||
$ npm run watch
|
||||
|
|
@ -106,11 +106,11 @@ Violations of some rules can be fixed automatically by:
|
|||
|
||||
Rules configuration can be found in the `.stylelintrc.json` file.
|
||||
|
||||
During fast iterative development, you can also choose to not run stylelint.
|
||||
During fast iterative development, you can also choose to not run eslint/stylelint.
|
||||
This speeds up the build and avoids build failures due to e. g. ill-formatted
|
||||
css or other issues:
|
||||
|
||||
$ make STYLELINT=0
|
||||
$ make LINT=0
|
||||
|
||||
# Running tests locally
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue