mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Add all files
This commit is contained in:
11
less-watcher.js
Normal file
11
less-watcher.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const fs = require('fs');
|
||||
const spawn = require('child_process').spawn;
|
||||
|
||||
process.argv.slice(2).forEach(function(file) {
|
||||
fs.watch(file, function(e) {
|
||||
if (e === 'change') {
|
||||
spawn('lessc', ['main.less', 'static/css/main.css']);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user