A simple JS and SCSS/CSS compiler and minifier.
A simple JS and LESS/SCSS/CSS compiler and minifier.
npm i -D node-tasky
Compile and minify JS.
watchJS(output: string, input?: string[], options?: Object): void;
Compile and minify LESS/SCSS/CSS.
watchCSS(output: string, input?: string[], options?: Object): void;
const tasky = require('node-tasky');
tasky.watchJS('dist/scripts.min.js', [
'assets/js/file1.js',
'assets/js/file2.js',
'assets/js/file3.js'
]);
tasky.watchCSS('dist/styles.min.css', [
'assets/less/file1.less',
'assets/scss/file1.scss',
'assets/scss/file2.scss',
'assets/css/file1.css',
'assets/css/file2.css'
]);
Minify HTML.
JS ES6/ES7 to ES5 with Babel.
TS to ES5 with TypeScript.
Support for multiples outputs, inputs and options.