1.4.34 • Published 2 months ago
@alicloud/console-os-loader v1.4.34
Console OS Loader
An app bundle loader used by console os
TODO
- load single bundle
- script load error handler
- recursive load
- load with deps
- combo load bundle
How to use
tnpm i @alicloud/console-os-loader
import { loadBundle } from '@alicloud/console-os-loader'
const vpc = await loadBundle({
id: 'vpc',
url: 'https://g.alicdn.com/aliyun-next/vpc/index.js'
})
External library
import react from 'react'
import { loadBundle } from '@alicloud/console-os-loader'
const vpc = await loadBundle(
{
id: 'vpc',
url: 'https://g.alicdn.com/aliyun-next/vpc/index.js'
deps: {
react,
}
}
)
Build bundle
Webpack
in you webpack.config.js
const Chain = require('webpack-chain');
const merge = require('webpack-merge');
const { chainOsWebpack } = require('@alicloud/console-toolkit-plugin-os')
const chain = new Chain();
chainOsWebpack({ id: 'app-id' })(chain);
module.exports = merge(/*you webpack conf*/, chain.toConfig());
Consol OS Toolkit
In OS, an app bundle is built by breezr, you can use @alicloud/console-toolkit-plugin-os to build your bundle
/* breezr.config.js */
module.exports = {
/*
* other breezr config
*/
plugins: [
'@alicloud/console-toolkit-plugin-os'
]
}
1.4.34
2 months ago
1.4.33
3 months ago
1.4.32
3 months ago
1.4.31
3 months ago
1.4.30
5 months ago
1.4.30-alpha.0
1 year ago
0.0.999-consoleBase
1 year ago
1.4.5
2 years ago
1.4.14-alpha.1
2 years ago
1.4.14-alpha.0
2 years ago
1.3.0-canary.5
2 years ago
1.3.0-canary.0
2 years ago
1.2.3
3 years ago
0.4.2
3 years ago
1.0.13
3 years ago
1.0.1-next.0
3 years ago
1.0.0
3 years ago
1.0.0-next.16
3 years ago
1.0.0-next.14
3 years ago
1.0.0-next.13
3 years ago
1.0.0-next.12
3 years ago
1.0.0-next.11
3 years ago
1.0.0-next.10
3 years ago
1.0.0-next.9
3 years ago
1.0.0-next.7
3 years ago
1.0.0-next.8
3 years ago
0.4.1
3 years ago
0.4.0
3 years ago
1.0.0-next.5
3 years ago
1.0.0-next.6
3 years ago
1.0.0-next.4
3 years ago
1.0.0-next.0
3 years ago
1.0.0-next.1
3 years ago
1.0.0-next.2
3 years ago
0.3.24
4 years ago
0.3.3
4 years ago
0.3.3-next.3
4 years ago
0.3.0
4 years ago
0.2.11
4 years ago
0.2.10
4 years ago
0.2.9
4 years ago
0.2.8
4 years ago
0.2.7
4 years ago
0.2.2
4 years ago
0.2.0
4 years ago
0.1.22
4 years ago
0.1.21
4 years ago
0.1.17
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.1
4 years ago