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

Allow "debugger" in js code #87

Open
d0cm0d opened this issue Jan 16, 2019 · 1 comment
Open

Allow "debugger" in js code #87

d0cm0d opened this issue Jan 16, 2019 · 1 comment

Comments

@d0cm0d
Copy link
Contributor

d0cm0d commented Jan 16, 2019

If you set a debugger in the js part of your .vue files, uglifyjs removes it.

The solution for this problem is very simple an I suggest it for the next release.
You just have to change line #164 in renderer.js from this:

let { code } = uglify.minify(compiledObject.compiled, { mangle: false });

to this:

let { code } = uglify.minify(compiledObject.compiled, { mangle: false, compress: { drop_debugger: false }});
@danielcherubini
Copy link
Contributor

can you please try this again with the new webpack-renderer

https://github.com/express-vue/express-vue#migration-to-webpack-renderer

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