Loads a css file from a module in the browser. Implemented using browserify
Based on require-css code.
$ npm install --save-dev requirefy-css
var requirefy = require('requirefy-css');
var cssPath = '/path/to/style';// (without .css)
requirefy(cssPath,function(){
console.log('css loaded');
});
in example folder: browserify -t brfs script.js > bundle.js
start the server: node server.js
- Cristian Hernandez (UI Dev)
- E-mail: [email protected]
Licensed under the MIT license.
Copyright (c) 2014