tiny-style-loader

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tiny-style-loader

Weekly Downloads

4

Version

1.0.1

License

Apache-2.0

Last publish

Collaborators

  • mikesherov