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.

" problem when using minifyjs: true

See original GitHub issue

An attribute like:

onclick="window.open('src/resources/pdfs/RC300_OM.pdf', '_blank')"

Will become:

onclick="window.open("resources/pdfs/RC300_OM.pdf","_blank")"

when using minifyjs: true. It’s very important for me to fix it since Browsers aren’t able to handle such things. How can this be solved?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alexlamslcommented, Jan 19, 2016

Interim workaround may be minifyjs:{quote_style:1}

0reactions
stevenvachoncommented, Jan 26, 2016

style attributes containing " still don’t work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Single quotes being replaced with double quotes #495 - GitHub
It is, valid JSON. The obvious thing to do here is to escape the double quotes so that they're a valid JSON string....
Read more >
minifying javascript with quote_keys is not working
I'm minifying javascript using gulp. ... My gulp task is as following: var uglify = require('gulp-uglify'); gulp.task('build1',function() { gulp.
Read more >
uglify-js - npm
Start using uglify-js in your project by running `npm i uglify-js`. ... Chrome & Node.js Equivalent to setting `v8: true` in `minify()` for ......
Read more >
API Reference - Terser
You can minify more than one JavaScript file at a time by using an object for the first argument where the keys are...
Read more >
rollup.js
const something = true; export { something };. Rename on export: ... Edit your rollup.config.js file to add a second minified output.
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