我有一个遵循此文件结构https://guide.meteor.com/structure.html#example-app-structure的流星应用程序。
在/client/main.js中,我的代码如下
import '/imports/startup/client';
console.log("this ran in client/main.js");
当我运行meteor
时,会显示日志,但是,当我使用meteor --production
启动服务时,则不会显示日志。
任何想法或标题将不胜感激!
仅供参考:这是带有服务器端渲染的流星反应应用程序。如果有帮助,这是我的package.json。
{
"dependencies": {
"@babel/runtime": "^7.0.0-beta.54",
"autoprefixer": "^7.1.6",
"aws-sdk": "^2.282.1",
"bcrypt": "^1.0.3",
"core-js": "^2.5.1",
"desandro-matches-selector": "^2.0.2",
"ev-emitter": "^1.1.1",
"fizzy-ui-utils": "^2.0.7",
"get-size": "^2.0.3",
"history": "^4.7.2",
"jquery": "^3.3.1",
"marked": "^0.3.19",
"meteor-node-stubs": "~0.2.11",
"moment": "^2.21.0",
"outlayer": "^2.1.1",
"prop-types": "^15.6.1",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-google-maps": "^9.4.5",
"react-helmet": "^5.2.0",
"react-markdown": "^3.3.0",
"react-router": "^4.2.0",
"react-router-dom": "^4.2.2",
"s-grid": "^1.2.1"
},
"devDependencies": {}
}
答案 0 :(得分:0)
为结束这个问题,我认为我对--production标志的使用在评估为什么prod vs---production vs local中未显示客户日志的情况时是不正确的。