Skip to content

Can we use with CDN (without npm / yarn)? #870

Answered by bcakmakoglu
mitsuo0114 asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, it's possible to use vue flow from CDN

Something like this should work

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/@vue-flow/[email protected]/dist/vue-flow-core.iife.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/@vue-flow/[email protected]/dist/vue-flow-background.iife.min.js"></script>
  <link href="https://cdn.jsdelivr.net/npm/@vue-flow/[email protected]/dist/style.css" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/@vue-flow/[email protected]/dist/theme-defaul…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mitsuo0114
Comment options

Answer selected by mitsuo0114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants