mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
feature: webpack 5
This commit is contained in:
parent
33bdf7b9e9
commit
656d8fd60c
8 changed files with 56 additions and 66 deletions
|
|
@ -52,12 +52,12 @@ module.exports.init = async () => {
|
|||
|
||||
showLoad();
|
||||
|
||||
const {prefix} = CloudCmd;
|
||||
const {DIR_MODULES} = CloudCmd;
|
||||
|
||||
[Template] = await Promise.all([
|
||||
Files.get('config-tmpl'),
|
||||
loadSocket(),
|
||||
loadCSS(`${prefix}/dist/config.css`),
|
||||
loadCSS(`${DIR_MODULES}/config.css`),
|
||||
CloudCmd.View(),
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -329,12 +329,12 @@ function check(src) {
|
|||
* @callback - executes, when everything loaded
|
||||
*/
|
||||
async function loadAll() {
|
||||
const {DIR_DIST} = CloudCmd;
|
||||
const {DIR_MODULES} = CloudCmd;
|
||||
|
||||
time(`${Name} load`);
|
||||
|
||||
Loading = true;
|
||||
await loadCSS(`${DIR_DIST}/view.css`);
|
||||
await loadCSS(`${DIR_MODULES}/view.css`);
|
||||
Loading = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue