openstyles / stylelint-bundle

Create & provide a bundled version of Stylelint
MIT License
5 stars 5 forks source link
bundle css less linter postcss scss stylelint

Stylelint Bundle

This repository branch modifies Stylelint and creates a bundle:

Demo

Create the bundle

Limitations

The resulting bundle:

Usage

For contributors

To update to a new version of Stylelint:

npm install stylelint@latest
npm run build

It will install the latest stylelint, bump the version number in package.json and package-lock.json, then build the bundle.

To test it:

npm test

Debug the bundle

Set environment variable DEBUG to 1 then run npm run build:

  1. You will get a webpage visualization of modules included in the bundle.
  2. Detailed module information in stats.json.
  3. The bundle is no longer minimized.