Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新版 febu 出问题了 #74

Closed
BigKongfuPanda opened this issue Aug 13, 2018 · 2 comments
Closed

新版 febu 出问题了 #74

BigKongfuPanda opened this issue Aug 13, 2018 · 2 comments

Comments

@BigKongfuPanda
Copy link

问题

构建后,static/js 文件夹中只有一个 config.js,其他的 js 文件都没有。检查 config.js 发现,所有的 js 模块都没有被注入。如下:

var require = {
    "waitSeconds": 0,
    "paths": {
        "jquery": "lib/jquery",
        "jquery.validate": "lib/jquery.validate",
        "jquery.pagination": "lib/jquery.pagination",
        "jquery.dirtyforms": "lib/jquery.dirtyforms",
        "moment": "lib/moment",
        "webuploader": "lib/webuploader",
        "_pikaday": "lib/pikaday",
        "_pikaday_datetime": "lib/pikaday_datetime",
        "text": "lib/text",
        "url": "lib/url",
        "templates": "../templates",
        "echarts": "lib/echarts.min",
        "macarons": "lib/macarons"
    },
    "shim": {
        "url": {
            "exports": "url"
        },
        "_pikaday": [
            "moment"
        ],
        "_pikaday_datetime": [
            "moment"
        ],
        "jquery.validate": [
            "jquery"
        ],
        "jquery.pagination": [
            "jquery"
        ],
        "jquery.dirtyforms": [
            "jquery"
        ],
        "lib/select2": [
            "jquery"
        ]
    }
};

正常的构建之后的 config.js 里面是下面这样的:

var require = {
    "waitSeconds": 0,
    "paths": {
        "jquery": "/odin/static/js/lib/jquery",
        "jquery.validate": "/odin/static/js/lib/jquery.validate",
        "jquery.pagination": "/odin/static/js/lib/jquery.pagination",
        "jquery.dirtyforms": "/odin/static/js/lib/jquery.dirtyforms",
        "moment": "/odin/static/js/lib/moment",
        "webuploader": "/odin/static/js/lib/webuploader",
        "_pikaday": "/odin/static/js/lib/pikaday",
        "_pikaday_datetime": "/odin/static/js/lib/pikaday_datetime",
        "text": "/odin/static/js/lib/text",
        "url": "/odin/static/js/lib/url",
        "templates": "../templates",
        "echarts": "/odin/static/js/lib/echarts.min",
        "macarons": "/odin/static/js/lib/macarons",
        "api_common_basic": "/odin/static/js/api_common_basic",
        "api_common_interface": "/odin/static/js/api_common_interface",
        "api_common_manage": "/odin/static/js/api_common_manage",
        "api_common_map": "/odin/static/js/api_common_map",
        "api_common_params": "/odin/static/js/api_common_params",
        "api_common_result": "/odin/static/js/api_common_result",
        "api_complex_basic": "/odin/static/js/api_complex_basic",
        "api_complex_manage": "/odin/static/js/api_complex_manage",
        "api_complex_params": "/odin/static/js/api_complex_params",
        "api_complex_poll": "/odin/static/js/api_complex_poll",
        "api_document": "/odin/static/js/api_document",
        "api_group_manage": "/odin/static/js/api_group_manage",
        "api_params_manage": "/odin/static/js/api_params_manage",
        "aside": "/odin/static/js/aside",
        "basic_variable_config": "/odin/static/js/basic_variable_config",
        "basic_variable_group": "/odin/static/js/basic_variable_group",
        "basic_variable_manage": "/odin/static/js/basic_variable_manage",
        "call_log": "/odin/static/js/call_log",
        "call_params_config": "/odin/static/js/call_params_config",
        "client_opened_products": "/odin/static/js/client_opened_products",
        "client_statistics": "/odin/static/js/client_statistics",
        "common": "/odin/static/js/common",
        "common_interface_choose": "/odin/static/js/common_interface_choose",
        "complex_release_manage": "/odin/static/js/complex_release_manage",
        "config": "/odin/static/js/config",
        "cost_detail": "/odin/static/js/cost_detail",
        "cost_statistics": "/odin/static/js/cost_statistics",
        "data_call_statistics": "/odin/static/js/data_call_statistics",
        "datasource_alarm": "/odin/static/js/datasource_alarm",
        "datasource_basic": "/odin/static/js/datasource_basic",
        "datasource_code": "/odin/static/js/datasource_code",
        "datasource_interface_manage": "/odin/static/js/datasource_interface_manage",
        "datasource_params": "/odin/static/js/datasource_params",
        "datasource_price_manage": "/odin/static/js/datasource_price_manage",
        "datasource_warn": "/odin/static/js/datasource_warn",
        "dialog": "/odin/static/js/dialog",
        "entry_manage": "/odin/static/js/entry_manage",
        "interface_choose": "/odin/static/js/interface_choose",
        "interface_monitor": "/odin/static/js/interface_monitor",
        "interface_price": "/odin/static/js/interface_price",
        "interface_router": "/odin/static/js/interface_router",
        "invoke_batch": "/odin/static/js/invoke_batch",
        "invoke_batch_done": "/odin/static/js/invoke_batch_done",
        "invoke_batch_ing": "/odin/static/js/invoke_batch_ing",
        "invoke_once": "/odin/static/js/invoke_once",
        "invoke_result": "/odin/static/js/invoke_result",
        "login": "/odin/static/js/login",
        "module_add": "/odin/static/js/module_add",
        "module_manage": "/odin/static/js/module_manage",
        "notice_record": "/odin/static/js/notice_record",
        "opened_details": "/odin/static/js/opened_details",
        "operate_log": "/odin/static/js/operate_log",
        "params_apply_detail": "/odin/static/js/params_apply_detail",
        "pay_record": "/odin/static/js/pay_record",
        "pay_record_all": "/odin/static/js/pay_record_all",
        "pikaday": "/odin/static/js/pikaday",
        "pikaday_datetime": "/odin/static/js/pikaday_datetime",
        "price_abnormal_notice": "/odin/static/js/price_abnormal_notice",
        "product_price_manage": "/odin/static/js/product_price_manage",
        "profit_statistics": "/odin/static/js/profit_statistics",
        "report_add": "/odin/static/js/report_add",
        "report_choose": "/odin/static/js/report_choose",
        "report_detail": "/odin/static/js/report_detail",
        "report_manage": "/odin/static/js/report_manage",
        "report_price": "/odin/static/js/report_price",
        "report_router": "/odin/static/js/report_router",
        "router_strategy": "/odin/static/js/router_strategy",
        "router_strategy_add": "/odin/static/js/router_strategy_add",
        "router_strategy_update": "/odin/static/js/router_strategy_update",
        "save_table_manage": "/odin/static/js/save_table_manage",
        "template": "/odin/static/js/template",
        "test_cost_statistics": "/odin/static/js/test_cost_statistics",
        "timeout": "/odin/static/js/timeout",
        "urlmap": "/odin/static/js/urlmap",
        "validate": "/odin/static/js/validate",
        "validate_idcard": "/odin/static/js/validate_idcard",
        "vendor_info": "/odin/static/js/vendor_info",
        "vendor_info_add": "/odin/static/js/vendor_info_add",
        "vendor_info_modify": "/odin/static/js/vendor_info_modify",
        "vendor_log": "/odin/static/js/vendor_log",
        "vendor_manage": "/odin/static/js/vendor_manage",
        "vendor_monitor": "/odin/static/js/vendor_monitor",
        "vendor_param_manager": "/odin/static/js/vendor_param_manager",
        "vendorface_index": "/odin/static/js/vendorface_index",
        "vendorface_index_compare": "/odin/static/js/vendorface_index_compare",
        "vendorface_info": "/odin/static/js/vendorface_info",
        "verd_document_manage": "/odin/static/js/verd_document_manage",
        "warn_api": "/odin/static/js/warn_api",
        "warn_notice": "/odin/static/js/warn_notice",
        "warn_source": "/odin/static/js/warn_source",
        "api_common/manage": "/odin/static/js/api_common/manage",
        "api_common/params": "/odin/static/js/api_common/params",
        "lib/accounting": "/odin/static/js/lib/accounting",
        "lib/arttemplate": "/odin/static/js/lib/arttemplate",
        "lib/echarts.min": "/odin/static/js/lib/echarts.min",
        "lib/jquery.dirtyforms": "/odin/static/js/lib/jquery.dirtyforms",
        "lib/jquery": "/odin/static/js/lib/jquery",
        "lib/jquery.pagination": "/odin/static/js/lib/jquery.pagination",
        "lib/jquery.validate": "/odin/static/js/lib/jquery.validate",
        "lib/macarons": "/odin/static/js/lib/macarons",
        "lib/moment": "/odin/static/js/lib/moment",
        "lib/pikaday": "/odin/static/js/lib/pikaday",
        "lib/pikaday_datetime": "/odin/static/js/lib/pikaday_datetime",
        "lib/require": "/odin/static/js/lib/require",
        "lib/select2": "/odin/static/js/lib/select2",
        "lib/text": "/odin/static/js/lib/text",
        "lib/url": "/odin/static/js/lib/url",
        "lib/webuploader": "/odin/static/js/lib/webuploader"
    },
    "shim": {
        "url": {
            "exports": "url"
        },
        "_pikaday": [
            "moment"
        ],
        "_pikaday_datetime": [
            "moment"
        ],
        "jquery.validate": [
            "jquery"
        ],
        "jquery.pagination": [
            "jquery"
        ],
        "jquery.dirtyforms": [
            "jquery"
        ],
        "lib/select2": [
            "jquery"
        ]
    }
};
@BigKongfuPanda
Copy link
Author

BigKongfuPanda commented Aug 13, 2018

新版的 febu 构建后,js 目录中只有一个 config.js。 如图:

image

正常的构建完后,js 目录中应该包含所有的 js 模块。如图:

image

@BigKongfuPanda
Copy link
Author

找到问题了。可以关闭 issue 了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant