Visitar URL original
GitHub - unscriptable/rave-curl-link: Adds curl's link AMD plugin to RaveJS. · GitHub
Skip to content

About

Adds curl's link AMD plugin to RaveJS.

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

rave-curl-link

rave-curl-link is a RaveJS extension that adds the ability to use the link plugin from curl.js in your RaveJS application.

When using an ES6 loader, AMD plugins aren't the most efficient way to load non-module resources. However, refactoring to use ES6 loaders can be a hassle. This extension allows existing AMD code bases to start using RaveJS without immediate refactoring. In the long term, you should investigate using true ES6 loader extensions such as rave-load-text and rave-load-css.

##Usage

This is all that is required to start using this extension in your RaveJS app:

npm install --save rave-curl-link

or:

bower install --save rave-curl-link

Any code that references the link plugin in AMD or node-formatted code will automatically find and use curl's plugin:

define(['link!theme.css'], function (sheet) {
	// use stylesheet here
});
var sheet = require('link!theme.css');
// use stylesheet here

Testing

TBD

Contributing

Pull requests accepted! Please see Contributing.

About

Brought to you by cujoJS.

About

Adds curl's link AMD plugin to RaveJS.

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages