Watch for file changes and compile LESS to CSS. PostCSS minify, autoprefixer and flexbugs fixes.
npm install less-watcher-compiler
yarn add -D less-watcher-compiler gulp
`$3
Create less-watcher-compiler.config.js (optional) in the root directory with content similar to example config.js.All options can be passed as command line (cli) arguments, which will override config file options.
$3
Add this script to package.json:
`js
"scripts": {
"style": "gulp --gulpfile ./node_modules/less-watcher-compiler/gulpfile.js --cwd ./"
}
`To watch and compile, run:
`bash
yarn style --sourcemap
`To compile only once (useful for production build), run:
`bash
NODE_ENV=production yarn style css
`To watch and compile with Semantic UI theme.config, run:
`bash
yarn style watch symlink
``