
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A nodejs script that allows you to watch a folder for changes and compile the less css files into another folder, optionally passing original lessc compiler arguments. When the --line-numbers=mediaquery argument is used, this nodejs script will fix the syntax so that webkit understands it too.
I only added those latter modifications. All credits should go to those who did the most work (which is like 99%):
Jonathan Cheung for writing the entire less watcher https://github.com/jonycheung/Dead-Simple-LESS-Watch-Compiler
Mikeal Rogers for writing the original folder watch script https://github.com/mikeal/watch
###Installation instructions
First, install LESS. Best to make them accessible from anywhere in your shell.
npm install less --global
Then, install lesswatch.
npm install lesswatch --global
###Usage
lesswatch [options] <source-folder> <destination-folder>
###Example
lesswatch --line-numbers=mediaquery less css
That will watch ./less folder and compile the less css files into ./css when they are added/changed and add mediaquery-formatted debug info to the css for debugging with webkit-inspector.
.less
extension. More file extensions can be added by modifying the allowedExtensions
array._style.css
or period .style.css
are ignored. This behavior can be changed in the filterFiles()
function.Github: https://github.com/Q42/lesswatch
FAQs
LESS folder watcher with optional debug information
We found that lesswatch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.