mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(package) load -> load.js + @cloudcmd/create/element
This commit is contained in:
parent
8ab8adb400
commit
f20a781c0b
19 changed files with 89 additions and 354 deletions
|
|
@ -7,6 +7,7 @@ require('../css/columns/name-size.css');
|
|||
|
||||
const {promisify} = require('es6-promisify');
|
||||
const wraptile = require('wraptile/legacy');
|
||||
const load = require('load.js');
|
||||
|
||||
const {
|
||||
registerSW,
|
||||
|
|
@ -49,7 +50,7 @@ function getPrefix(prefix) {
|
|||
const onUpdateFound = wraptile(async (config) => {
|
||||
const {DOM} = window;
|
||||
const prefix = getPrefix(config.prefix);
|
||||
const js = promisify(DOM.load.js);
|
||||
const js = promisify(load.js);
|
||||
|
||||
await js(`${prefix}/dist/cloudcmd.common.js`);
|
||||
await js(`${prefix}/dist/cloudcmd.js`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue