生产标记的流星未成功加载某些文件 [英] meteor minified with production flag fails to load certain files

查看:129
本文介绍了生产标记的流星未成功加载某些文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有从服务器或浏览器控制台得到任何错误,但是当我缩小或使用 - 生产标志时,我的应用程序似乎会中断。我回到了一个修订/变更集,我记得使用 meteor deploy ,但仍然失败。有没有人面临这个问题?

I am not getting any errors from the server or the browser console but my application seems to break when i minify or use the --production flag. I have went back to a revision/changeset that i recall working with meteor deploy and it still fails. Has anyone else faced this problem ?

我应该提到,我只是运行一个较旧版本的流星,它的作品。 Meteor版本0.7.0.1看起来可能是问题?

I should mention, i just ran this with an older version of meteor and it works. Meteor version 0.7.0.1 looks like might be the problem?

编辑:运行0.6.6.3

Running 0.6.6.3

我跑流星 - 释放0.6.6.3 - 生产以缩小和使用旧版流星。这样做完美,任何人都知道捆绑过程是否在最新版本的流星中发生了变化?

I ran meteor --release 0.6.6.3 --production to minify and use an older version of meteor. This works perfectly, any one know if the bundling process has changed in the latest version of meteor ?

推荐答案

返回v0.6.4.1我们有问题,如果我们有 @media 语句分割成多个文件。将它们全部放在一个文件中,避免了css minification问题。可以为您的 @import 语句工作。

Way back with v0.6.4.1 we had issues if we had @media statements split across multiple files. Putting them all in one file avoided the css minification problems. May work for your @import statements as well.

- 更新 -

我回顾了我所有的@import语句,发现一个被注释掉了,看到在生产中我的css文件已被破坏。 @Warz在评论中

"I looked back at all my @import statements and found one that was commented out and saw that in production my css file had been corrupted." @Warz in comments

所以看起来像是注释掉@import语句是不支持在css minifier从Meteor v0.7.0.1。

So it looks like commenting out @import statements is not supported in the css minifier as of Meteor v0.7.0.1.

这篇关于生产标记的流星未成功加载某些文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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