load-source
v1.2.0
Published
A simple function for load js/image/css/style
Downloads
110
Maintainers
Readme
load-source
A simple function for load js/image/css/style
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/[email protected]/dist/index.global.prod.js"></script>
Support & Issues
Please open an issue here.