1.0.1 • Published 7 years ago

tiny-style-loader v1.0.1

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
7 years ago

Tiny Style Loader Build Status NPM version js-standard-style

The purpose of this library is to be the smallest callback & Promise -based style loader.

If you're looking for a script loader, check out Tiny Script Loader

Usage

Callback

var loadStyle = require('tiny-style-loader/loadStyle')

loadStyle('https://example.com/style.css', function () {
  console.log('loaded')
})

Promise

var loadStyle = require('tiny-style-loader/loadStylePromised')

loadStyle('https://example.com/style.css')
.then(function () {
  console.log('loaded')
})

License

Apache-2.0