@charles-evolv/yml-min

0.1.10 • Public • Published

yml-min

Applies post-processing and minification to scripts and styles contained in Evolv metamodel files.

Post Processing

JS

  • Babel
  • Terser

CSS

  • Post CSS
  • sort-media-queries plugin
  • cssnano plugin

Getting started

Install from NPM

npm install @charles-evolv/yml-min

Usage

After running you will find your minified yml in the base folder near your original file. A folder will also be created with all the code for all of your contexts and variants can be found there for easy code review.

Run once

npx yml-min <metamodel.yml>

Watch for changes

yml-min installs with nodemon by default, to automatically update your minified file every time your original yml is saved, paste this into the scripts section of your package.json file.

"watch": "nodemon --watch <metamodel.yml> --exec \"yml-min <metamodel.yml>\""

and run with:

npm run watch

Readme

Keywords

none

Package Sidebar

Install

npm i @charles-evolv/yml-min

Weekly Downloads

2

Version

0.1.10

License

ISC

Unpacked Size

4.35 kB

Total Files

3

Last publish

Collaborators

  • charles-evolv