lindell / vue-barcode

Barcode generator for Vue.js
MIT License
220 stars 26 forks source link

Self contained example #15

Open iracic opened 6 years ago

iracic commented 6 years ago

Hi, Would it be possible to have example without the use of npm nor JsFiddle ? Thank you, Igor

duckbrain commented 5 years ago

Looking at the source, it's using node modules (CommonJS). require('jsbarcode'); and module.exports = VueBarcode; The source code expects that you are using something like Webpack or Browserify.

If you wanted it to work in the browser by just including a <script> tag, you will want to remove those lines. You'll need to include <script> tags for Vue and jsbarcode before that script as well.