cnpm install h-ice-cli@latest --save-dev
ice dev -p 9235[port]
ice build
ice app
entry : entry like webpackage [default {"dev": "src/index.js", "prod": "src/dev.js","app": "src/app.js"}]
"buildConfig": {
"hot": false,
"dropConsole": true,
"theme": "@icedesign/skin",
"primaryTheme": {
"primary-color": "#6699ff",
"brand-primary": "green",
"color-text-base": "#333"
},
"appHtml": {
"dev": "dev.html",
"prod": "index.html",
"app": "app.html"
},
"publicUrl": {
"dev": "/",
"prod": "/",
"app": "./"
},
"entry": {
"dev": "src/index.js",
"prod": "src/index.js",
"app": "src/app.js"
},
"import": [
{
"libraryName": "@icedesign/base",
"style": true
},
{
"libraryName": "antd",
"style": true
}
]
}
"proxyConfig": {
"/api": {
"enable": true,
"target": "http://your address"
},
"/api2": {
"enable": true,
"target": "http://your address2"
}
}
"copyConfig": {
"include": [],
"except": []
}