Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self contained example #15

Open
iracic opened this issue Sep 12, 2018 · 1 comment
Open

Self contained example #15

iracic opened this issue Sep 12, 2018 · 1 comment

Comments

@iracic
Copy link

iracic commented Sep 12, 2018

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

@duckbrain
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants