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

SyntaxError: Unexpected token when trying to uglifyify this file (bootstrap-select) #41

Open
alexander-daniel opened this issue Oct 19, 2015 · 1 comment

Comments

@alexander-daniel
Copy link

I apologize in advance for the potentially silly question. I'm trying to uglify this as part of a bundle, however this ONE file does not seem to want to play nice.

To simplify recreating this issue, I have copied the exact code I'm using for bootstrap-select. It won't even uglifyify by itself!

https://gist.github.com/alexander-daniel/d527e8be5f5a3ec5eb15

If you try to run the command browserify -t uglifyify bootstrap-select.js -o select.js on this file, it outputs SyntaxError: Unexpected token when trying to uglifyify this file

Using "browserify": "^11.2.0", "uglifyify": "^3.0.1"

Any help would be appreciated! Thanks for the awesome browserify plugin, it's been a dream to use except for this minor hiccup!

Cheers!

@weilu
Copy link
Collaborator

weilu commented Oct 24, 2015

I grabbed the bootstrap-select.js file off the gist. It works fine for me. I made sure that we have the same versions of browserify and uglifyify:

○ → npm list | grep uglifyify
└─┬ uglifyify@3.0.1
○ → browserify --version
11.2.0

OS specific issue? I'm on OS X 10.10.3

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