canner-bundle-script
v1.0.1
Published
canner-bundle-script
Downloads
68
Readme
canner-bundle-script
Bundle up Canner scripts.
Install
npm install canner-bundle-script
Usage
const cannerBundle = require('canner-bundle-script');
const bundle = cannerBundle({
schema: "<absolute path to schema>",
resolver: "<absolute path to resolver>",
connector: "<absolute path to connector>"
})
.then(bundlePaths => {
// your bundle code paths
// `path` might be more than one, because we are using dynamic loader in webpack.
})
// bundle
// {
// schema: schemaObject,
// reolver: resolverObject,
// connector: connectorObject
// }
Output
bundle.js
export umd library name cannerBundle
.
get window.cannerBundle
from your browser.
custom-style.css
This is a customized antd style.