vue-barcode icon indicating copy to clipboard operation
vue-barcode copied to clipboard

Self contained example

Open iracic opened this issue 5 years ago • 1 comments

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

iracic avatar Sep 12 '18 14:09 iracic

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.

duckbrain avatar Jan 15 '19 23:01 duckbrain