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

支持通过js模块配置项目元数据 #14

Closed
ixlei opened this issue Jul 4, 2018 · 1 comment
Closed

支持通过js模块配置项目元数据 #14

ixlei opened this issue Jul 4, 2018 · 1 comment

Comments

@ixlei
Copy link

ixlei commented Jul 4, 2018

目前通过feflow.json配置构建数据,json文件无法编程,存在很多限制

支持js模块配置构建数据

@cpselvis
Copy link
Collaborator

cpselvis commented Jul 4, 2018

已经在v0.13.5版本支持。 项目下的配置文件可以为 feflow.json 或者 feflow.js。4c7dfd8

feflow.js 如下:

module.exports = {
    "builderType": "builder-webpack3",
    "builderOptions": {
        "moduleName": "app",
        "bizName": "official-vote",
        "minifyHTML": true,
        "minifyCSS": true,
        "minifyJS": true,
        "inlineCSS": true,
        "usePx2rem": true,
        "remUnit": 37.5,
        "remPrecision": 6,
        "inject": true,
        "port": 8001,
        "externals": [
            {
                "module": "react",
                "entry": "//11.url.cn/now/lib/16.2.0/react.min.js?_bid=3123",
                "global": "React"
            },
            {
                "module": "react-dom",
                "entry": "//11.url.cn/now/lib/16.2.0/react-dom.min.js?_bid=3123",
                "global": "ReactDOM"
            }
        ]
    }
}

@cpselvis cpselvis closed this as completed Jul 4, 2018
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

2 participants