Acssx
AliasCss extended version intregrated with sass and cli features
Installation
npm install acssx
acssx inputfile.acss outputfile.css
const acssx = ;
TO get Minified accs compiler for browser
acssx //Exampleacssx;
Next: use that file in your html page
AliasCSS Template <!-- AliasCSS --> Hello, world!
Acss-Compiler
Where accs.dist("path\to\file.js");
provides in browser compiler, 'accs.run(inputfolder\orfile ,distination)' , compiles classnames and bundles in single css file from the given input. Input can be foler, files or array of files or folder or both
Example
const accs = ;//input as a folderacssx; //input as a fileacssx; //input as a array of files and folder, acssx;
Each time you run 'accs.run()' if the destination file is same it will overwrite the content, if you want to append content to the destination file, you need to pass 'true', as third arguments.
Example
acssx.run("./public", ".public/css/acss.css", true);
Watch
node acssx\bin\accsx inputFileOrFolder outputFile.css --watch
;
const accs = ;//input as a folderacssx; //input as a fileacssx; //input as a array of files and folder, acssx; //Watch you file/Folder i.e input note no 'watch' available for array.acssx;
@package.json
......
"scripts": {
....
"watch": "accsx pathToInputFolderOrFilename/ demo.css --watch",
....
},
....