iMuFeng / vite-plugin-remote-scripts

Bundles your styles or scripts from remote urls with your app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Bundles your styles or scripts from remote urls with your app

License:MIT License


Languages

Language:TypeScript 88.5%Language:Vue 5.9%Language:HTML 5.6%