- A simple function for load js/image/css/style: load-source
- A simple function for mounting css: mount-css
- A simple function for mounting javascript: mount-script
- A simple function for mounting image: mount-image
- A simple function for mounting css style codes: mount-style
e.g: use load-source
# by pnpm
pnpm install load-source
# by npm
npm install -D load-source
# by yarn
yarn add load-source
import loadSource from 'load-source'
loadSource('js/image/css/style', options)
- by require
const loadSource = require('load-source')
loadSource('js/image/css/style', options)
<!-- head -->
<script src="https://unpkg.com/load-source@1.2.0/dist/index.global.prod.js"></script>
Please open an issue here.