question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: compress with vue plugin?

See original GitHub issue

I tired to:

bili --plugins vue --compress

Error:

{ Error: Error transforming bundle with 'uglify' plugin: Unexpected token: punc (()
    at error (/Users/Nemo/dev/workspace/vue-one-size/node_modules/rollup/dist/rollup.js:177:12)
    at /Users/Nemo/dev/workspace/vue-one-size/node_modules/rollup/dist/rollup.js:9456:5
    at process._tickCallback (internal/process/next_tick.js:109:7)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:508:3 code: 'BAD_BUNDLE_TRANSFORMER', plugin: 'uglify' }
Error transforming bundle with 'uglify' plugin: Unexpected token: punc (()
error Command failed with exit code 1.

My project here: https://github.com/ROYL-Design/vue-one-size

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
egoistcommented, Aug 23, 2017

Hmm, seems we have to insert rollup-plugin-vue before buble/babel plugin (currently it’s append-ed), will fix this later

0reactions
NemoAlexcommented, Aug 23, 2017

Works fine now. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vuejs Webpack Compression Plugin not compressing
It seems like the compression-webpack-plugin only compresses files, but it doesn't automatically configure the dev server to serve the ...
Read more >
[Deployment Issue] Problem delivering gzip files from Vue app
I have not been able to enable the delivery of all the gzip files (chunks files, svg. etc) that my vue app generates...
Read more >
Vuejs Webpack Compression Plugin not compressing
Answer a question I need help debugging Webpack's Compression Plugin. SUMMARY OF PROBLEM Goal is to enable asset compression and reduce my ...
Read more >
Deployment - Vue CLI
If your static frontend is deployed to a different domain from your backend API, you will need to properly configure CORS. PWA #....
Read more >
Top 30 Vue JS Interview Questions 2022 - MindMajix
Ans: Vue-loader is a webpack loader plugin that allows us to develop single-file components in the vue format. Template, script, and style are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found