UNPKG

aliascss

Version:

AliasCSS is a CSS post processor.

24 lines (19 loc) 714 B
import main ,{ watch} from './lib/node/compileFile.js' import postcss from 'postcss'; import path from 'path' import safeParse from 'postcss-safe-parser'; import * as fs from 'fs'; let config=await import(path.resolve('aliascss.config.js')) console.log(path.dirname('button/hello/hello.txt')); // watch({input:['./demo/**/*.html'],output:{location:'./demo/acss.css','--file':true}}); // fs.openSync('button/hello/hello.txt','w'); // fs.mkdirSync('button/hello',{recursive:true}) let cpath="button/hello/hell0/s.js"; let dir=path.dirname(cpath); if(fs.existsSync(dir)){ console.log('Already exists') }else{ fs.mkdirSync(dir,{recursive:true}); console.log('Dir Created') } fs.openSync(cpath,'w');