代码之家  ›  专栏  ›  技术社区  ›  Junhao

Meteor—产品未在客户端文件夹中运行文件

  •  0
  • Junhao  · 技术社区  · 7 年前

    我有一个meteor应用程序遵循这个文件结构, https://guide.meteor.com/structure.html#example-app-structure

    输入/客户端/主要.js我的代码是这样的

    import '/imports/startup/client';
    console.log("this ran in client/main.js");
    

    当我跑的时候 meteor meteor --production ,日志不显示。

    {
    "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": {}
     }
    
    1 回复  |  直到 7 年前
        1
  •  0
  •   Junhao    7 年前

    为了结束这个问题,我认为我使用--production标志来评估为什么在prod vs--production vs local中不显示客户机日志是不正确的。

    推荐文章