udpate umi version
A cli tool to convert your umi page to a umi block.
$ umi-block-convertor [block source entry js] [block target folder]
$ umi-block-convertor --config [path to config.json]
A config demo:
// all path relative to process.cwd() { "source": "./src/pages/test/Hello.js", "target": "../block/hello", "extFiles": [ ["./src/pages/test/model.js", "src/model.js"], ["./src/pages/test/locals", "src/locals"] ] }
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
umi-block-convertor
A cli tool to convert your umi page to a umi block.
Usage
Config
A config demo: