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

How to use/install without webpack / other builders? #2329

Open
JoshKasap opened this issue Oct 23, 2023 · 0 comments
Open

How to use/install without webpack / other builders? #2329

JoshKasap opened this issue Oct 23, 2023 · 0 comments

Comments

@JoshKasap
Copy link

I've just been installing packages with npm and then pointing my path to the .min.js files and usually it's worked out but lately I've been running into a lot that seem to require webpack or a webpack equivalent?

It's even more confusing because for some libraries like this one it sounds like you support both methods by allowing us to load a standalone script as shown in this example

<script type="text/javascript" src="validator.min.js"></script>
<script type="text/javascript">
  validator.isEmail('foo@bar.com'); //=> true
</script>

But when i point to the validator.min.js it seems to be almost empty. When i use the cdn it works perfectly fine though and I can see the file actually has stuff filled in.

  1. How can i get to this point ideally via just npm install and pointing to files?
  2. If that's not possible can someone clearly yet simply explain at a high level what methods are available to me? I don't seem to understand some important things. My best best understanding is that i need to use webpack or something but I don't even know if that's 100% necessary and i'm not using node like most people are. I have to work with adobe cold fusion which is partly why what I need to do and what applies to me in order to get this working is so confusing to me.

Help would be greatly appreciated.

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

1 participant