feature: webpack 5

This commit is contained in:
coderiaser 2025-07-03 23:05:16 +03:00
parent 33bdf7b9e9
commit 656d8fd60c
8 changed files with 56 additions and 66 deletions

View file

@ -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(),
]);

View file

@ -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;
}