Registry / devops / watchalive-less

watchalive-less

JSON →
library0.1.1jsnpmunverified

A Less/CSS transpiler plugin for the watchalive file-watching and live-reload system. Version 0.1.1 is the initial release, designed to compile Less files to CSS automatically during development. It serves as an alternative to using the standalone lessc compiler or other build-tool integrations, tightly coupled with the watchalive ecosystem for seamless file monitoring and CSS injection.

npm install watchalive-less
INSTALL
IMPORT
SIG · WATCHALIVE-LESS
W
watchalive-less
devopsjavascriptv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

watchalive-less
require('watchalive-less')
import watchaliveLess from 'watchalive-less'
CommonJS-only; no ESM or TypeScript declarations provided.
LessPlugin
const LessPlugin = require('watchalive-less').LessPlugin
const { LessPlugin } = require('watchalive-less')
Default export is the plugin instance, but the named export LessPlugin may not exist. Check documentation.
default
const lessPlugin = require('watchalive-less')
import lessPlugin from 'watchalive-less'
ESM import may fail; use require for CommonJS compatibility.

Sets up a watchalive server with the Less transpiler plugin, watching ./src directory for changes and compiling Less files to CSS.

const watchalive = require('watchalive'); const lessPlugin = require('watchalive-less'); watchalive.create({ port: 3001, root: './src', plugins: [lessPlugin], // Other watchalive options }).start();
watchalive --version
Debug
Known issues
gotchaNo README or documentation provided in the package; usage relies solely on understanding watchalive's plugin API.
fix
Refer to watchalive documentation for plugin integration patterns.
affects: >=0.1.1
gotchaPackage is CommonJS-only; attempting ESM imports may fail.
fix
Use require() instead of import.
affects: >=0.1.1
gotchaNo TypeScript type definitions included.
fix
Create custom declaration or use @types if available.
affects: >=0.1.1
Errors
Common errors & fixes
Error: Cannot find module 'watchalive-less'
Package not installed or not in node_modules
fix
Run 'npm install watchalive-less --save-dev' and ensure it's in the same directory as your script.
TypeError: watchalive.create is not a function
watchalive not imported correctly or version mismatch
fix
Ensure you have watchalive installed and use const watchalive = require('watchalive');
Error: Plugin 'watchalive-less' is not a valid plugin
Incorrect usage of the plugin object
fix
Use require('watchalive-less') as the plugin entry, not a constructor.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
watchaliverequiredCore file-watching and live-reload framework required for operation
Agent activity
4 hits · last 30 days
node
4
Resources
watchalive-less — npm install watchalive-less · libregistry