如何从vuejs的编译文件中获取源代码? [英] How to get source code from compiled file of vuejs?
问题描述
由于笔记本电脑崩溃,我丢失了我的 vuejs 源代码.我有由 vuejs 编译的文件.是否可以从编译文件中获取源代码(vuecli 2 中由 npm run build
生成的文件).
I lost my vuejs source code due to of laptop crash. I have files which are compiled by vuejs. Is it possible to get source code from compiled file (files genereated by npm run build
in vuecli 2).
我用谷歌搜索,但没有找到.有什么工具可以这样做吗?
I googled it but nothing found. Is there any tool to do so?
推荐答案
我为你找到了两个链接,
I found two links for you,
第一个解决方案是使用 babel(相当困难):https://forum.vuejs.org/t/any-method-or-workaround-to-decompile-dynamically-compiled-components/16334/3
First solution is to use babel (quite difficult) : https://forum.vuejs.org/t/any-method-or-workaround-to-decompile-dynamically-compiled-components/16334/3
第二个解决方案(最好的方法),如果你编译的文件不在生产模式,你可以用 vue devtool 检查它们:https://forum.vuejs.org/t/any-method-or-workaround-to-decompile-dynamically-编译组件/16334/3
Second solution (the best approach), if your compiled files are not in production mode you can check them with vue devtool : https://forum.vuejs.org/t/any-method-or-workaround-to-decompile-dynamically-compiled-components/16334/3
希望这会有所帮助!
这篇关于如何从vuejs的编译文件中获取源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!