Skip to content

cristian2028/requirefy-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

requirefy-css

Description

Loads a css file from a module in the browser. Implemented using browserify

Based on require-css code.

Installation

$ npm install --save-dev requirefy-css 

Usage

var requirefy = require('requirefy-css');

var cssPath = '/path/to/style';// (without .css)

requirefy(cssPath,function(){
    console.log('css loaded');
});

Run Example

in example folder: browserify -t brfs script.js > bundle.js

start the server: node server.js

Maintained by

License

Licensed under the MIT license.

Copyright (c) 2014

About

Load CSS asynchronously using CommonJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published