Skip to content

Lets you create custom aliases for CSS,less, SASS and etc. properties with an @alias rule 🇺🇦

License

Notifications You must be signed in to change notification settings

RobinCK/css-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css-aliases

Install

$ npm install --save css-aliases

Usage

var cssAliasses = require('css-aliases');
var fs = require('fs');

var resourcePath = './style.less'; //or css, scss
var aliasess = {
    "@aliasName": "path/to/your/folder"
};
var css = cssAliasses(fs.readFileSync(resourcePath, 'utf8'), resourcePath, aliases)

A javascript file before compilation

@import "@aliasName/css/user.less";

body {
  background: #9e9e9e;
}

will become:

@import "path/to/your/folder/css/user.less";

body {
  background: #9e9e9e;
}

About

Lets you create custom aliases for CSS,less, SASS and etc. properties with an @alias rule 🇺🇦

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •