gopherjs-vue icon indicating copy to clipboard operation
gopherjs-vue copied to clipboard

Allow use of non-minified vue.js to allow debugging

Open johanbrandhorst opened this issue 8 years ago • 9 comments

The vue devtools requires the vue.js file to be in "non-production" mode. Currently the version used is minified, which makes it impossible to use the debugging tools, which is a shame.

johanbrandhorst avatar Feb 04 '17 18:02 johanbrandhorst

Maybe I shall not include the VueJS in the GopherJS package directly?

oskca avatar Feb 24 '17 05:02 oskca

That would be another alternative

johanbrandhorst avatar Feb 24 '17 09:02 johanbrandhorst

It's done by https://github.com/oskca/gopherjs-vue/commit/2ff578cf2f64413d11086782e0476768d55bd077 @johanbrandhorst

oskca avatar Feb 24 '17 12:02 oskca

Thanks! I think you should probably add it to your README as well so users aren't confused why their code doesn't work. This means another setup step is to download a suitable version of vue.js and name it the correct thing and put it in the right place, so it should be in the README.

johanbrandhorst avatar Feb 24 '17 12:02 johanbrandhorst

as in https://github.com/oskca/gopherjs-vue/commit/ab40c9e57345d35375c820c8e885d28ed70f165e, you can now use building tags to switch the VueJS versions. :smile:

oskca avatar Feb 25 '17 02:02 oskca

Nice work!

johanbrandhorst avatar Feb 25 '17 16:02 johanbrandhorst

Actually I have to reopen this as no matter how I try I can't seem to get it compiled with the minified version?

johanbrandhorst avatar Feb 25 '17 17:02 johanbrandhorst

When switching the building tags the building procedures works as expected, but the outcomes always include only one version of the *.inc.js code. I think this's a bug of gopherjs building tools, and filed an issue report: https://github.com/gopherjs/gopherjs/issues/598.

oskca avatar Feb 26 '17 15:02 oskca

Ah, good digging!

johanbrandhorst avatar Feb 26 '17 16:02 johanbrandhorst