Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 533 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 533 Bytes

styles.js

Simple and easy to use JavaScript library to load your .css files

How to use

  1. Add styles.js in your HTML document: <script type="text/javascript" data-css="css/folder/config-file" src="js/folder/styles.js"></script>.
  2. Create a config-file.js file in the css/folder/ folder.
  3. Finaly, to load my-styles.css from css/folder/, simply add styles.load('my-styles'); to the config-file.js in the same folder.

Author

Rasmus Burkal, @rabu81