Skip to content
New issue

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

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

Already on GitHub? # to your account

Uglifier::Error: Unexpected token: name (package) #172

Open
ghost opened this issue Jan 20, 2020 · 0 comments
Open

Uglifier::Error: Unexpected token: name (package) #172

ghost opened this issue Jan 20, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 20, 2020

I have a package parameter/argument in a JavaScript function. During precompilation process in the deployment, it raises an error Uglifier::Error: Unexpected token: name (package) and the deployment halts. Renaming package to another name solves the issue.

staging.rb / production.rb

config.assets.js_compressor = Uglifier.new(harmony: true)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants