Installing
# use pnpm
$ pnpm install load-source
# use npm
$ npm install load-source --save
# use yarn
$ yarn add load-source
Usage
General use
import loadSource from 'load-source'
loadSource('js/image/css/style', options)
- by require
const loadSource = require('load-source')
loadSource('js/image/css/style', options)
Use CDN resource
<!-- head -->
<script src="https://unpkg.com/load-source@1.2.0/dist/index.global.prod.js"></script>
Support & Issues
Please open an issue here.