我成功地设置了Visual Studio Python项目.我现在想通过源代码控制(我工作的公司使用SVN)与其他开发人员分享这个项目.
因为我想避免我的每个同事都必须手动设置相同的Python环境,所以我研究了使用虚拟环境.在我看来,这似乎与NPM模块在本地存储的方式非常相似.
没有太多麻烦,我设法建立了一个非常出色的虚拟环境.
但是,当我注意到"pyproj"文件包含对我本地虚拟环境的引用时,我已准备好将我的"虚拟环境"文件夹排除在检查SVN之外:
<ItemGroup>
<Interpreter Include="VirtualEnvironment\">
<Id>VirtualEnvironment</Id>
<Version>3.6</Version>
<Description>VirtualEnvironment (Python 3.6 (64-bit))</Description>
<InterpreterPath>Scripts\python.exe</InterpreterPath>
<WindowsInterpreterPath>Scripts\pythonw.exe</WindowsInterpreterPath>
<PathEnvironmentVariable>PYTHONPATH</PathEnvironmentVariable>
<Architecture>X64</Architecture>
</Interpreter>
Run Code Online (Sandbox Code Playgroud)
如果我删除"虚拟环境"文件夹并打开Visual Studio解决方案,我没有任何选项可以根据生成的"requirements.txt"文件恢复环境(如我所料).除非我删除不工作的"虚拟环境"并添加一个全新的虚拟环境.
这让我相信我的工作流程或假设存在问题.
附注:
我正在研究NotificationManager,但我无法理解构建器的目的。
Notification n = new Notification.Builder(this)
我需要缩小服务器上的代码。它告诉我npm run build做所有缩小的事情
但在我的服务器上(当然我不是通过访问它localhost)它显示了所有代码。我正在mavennpm run build中做pom.xml。我的包 json 包含反应脚本的实际版本。

所有代码均由 nginx 提供。
好的,我已经看到了
When does create-react-app obfuscate or minify code?
这个GENERATE_SOURCEMAP=false 问题
并阅读这个https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-howgenerate
它告诉我所以Developer tools (currently WebKit nightly builds, Google Chrome, or Firefox 23+) can parse the source map automatically and make it appear as though you're running unminified and uncombined files.
它告诉我源映射是我看到我的代码的原因照原样。
还有一个没有 devTools 的 Firefox 浏览器,我在其中关闭了源映射
并且...它按原样向我显示了代码!
npm run build 尽管“使构建缩小”,为什么它仍然向我显示代码?请告诉我哪里不好以及如何解决?顺便说一句,到处都写着 *.env 应该位于根目录中。整个项目的根目录还是仅前端文件夹?