Do you use Less with Node.JS or on its own? If you're using it with Node, there are simple solutions to fix this issue. Here are two options you can try in your app.js
:
One option is to use a middleware, as discussed in this Stack Overflow thread
var lessMiddleware = require('less-middleware');
...
app.configure(function(){
//other configuration here...
app.use(lessMiddleware({
src : __dirname + "/public",
compress : true
}));
app.use(express.static(__dirname + '/public'));
});
Another approach involves calling a system function when starting your NodeJS instance (method name may vary depending on the NodeJS version)
// before all processing is done
execSync("lessc /public/stylesheets/styles.less /public/stylesheets/styles.css");
var app = express();
app.use(...);
In both scenarios, Node will automatically convert Less files to CSS. The second method requires Node to be restarted for conversion, while the first continuously checks for updates in a specific directory.