requirefy-css
v0.0.4
Published
Loads a css file from a browserified module
Downloads
4
Maintainers
Readme
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
- Cristian Hernandez (UI Dev)
- E-mail: [email protected]
License
Licensed under the MIT license.
Copyright (c) 2014