使用Firebase Hosting如何关闭捆绑和缩小? [英] With Firebase Hosting how do I turn off bundling and minification?

查看:84
本文介绍了使用Firebase Hosting如何关闭捆绑和缩小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很高兴能够将我的AngularJS和Firebase应用程序部署到Firebase Hosting的速度有多快,但看起来本地CSS和JavaScript文件在执行$ firebase部署时被捆绑和缩小

I am pleased with how quickly I can get my AngularJS and Firebase app deployed to Firebase Hosting, but it appears that local CSS and JavaScript files are bundled and minified as part of executing $firebase deploy

我想在部署后调试JavaScript。如何在部署过程中关闭捆绑和缩小?

I would like to debug the JavaScript after deploying. How do I turn off bundling and minification as part of the deploy?

推荐答案

我们目前处于测试版状态我们很快就会实施,但我担心此时不可能关闭缩小和部署捆绑。

我们已经刚从我们对上传文件的处理中删除了缩小步骤,所以如果你重新部署,这应该适合你。由于我们处理缓存的方式,您可能需要更改链接到脚本的html文件(即使只是一个微不足道的空白更改),然后才能反映更改。

We've just removed the minification step from the processing we do on the uploaded files so if you redeploy this should be working for you. Because of the way we handle caching, you might need to make a change to the html files that link to the scripts (even just a trivial whitespace change) before they reflect the changes.

这篇关于使用Firebase Hosting如何关闭捆绑和缩小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆