Update caniuse-lite in build process

Created on 7 February 2023, almost 2 years ago

Problem/Motivation

Theme build process complains often with next message:

Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating

And then you need to manually execute `npx browserslist@latest --update-db` for all custom themes.

This is a bit boring to do all the time.

Proposed resolution

Add `npx browserslist@latest --update-db` command into package.json `build-css` so it is executed every time, so it should look like this:

  "scripts": {
    "build-css": "((type pnpm && pnpm install) || npm install) && npx browserslist@latest --update-db && npx gulp clean:css && npx gulp sass"
  }

Also add update function that is updating all child themes package.json with this.

Feature request
Status

Fixed

Version

1.0

Component

BS Base

Created by

🇷🇸Serbia pivica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024