0.0.1 • Published 3 years ago

vite-plugin-remote-scripts v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vite-plugin-remote-scripts

Bundles your styles or scripts from remote urls with your app.

<script data-remote-script src="http://example.com/library.js"></script>

To

<img src="./node_modules/.remote-scripts/remote-script.c3b8e480.js" />

Install

npm i vite-plugin-remote-scripts -D
// vite.config.ts
import RemoteScripts from 'vite-plugin-remote-scripts'

export default {
  plugins: [
    RemoteScripts()
  ]
}

License

MIT License © 2022