express-vue / vue-pronto

Rendering Engine for turning Vue files into Javascript Objects
Apache License 2.0
20 stars 12 forks source link

Allow "debugger" in js code #87

Open d0cm0d opened 5 years ago

d0cm0d commented 5 years ago

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 commented 5 years ago

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

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