UNPKG

@areslabs/alita-core

Version:

alita-core

21 lines (17 loc) 626 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleChanged = void 0; var _util = require("../util/util"); const handleChanged = (info, finalJSPath) => { const newWxOutFiles = {}; const wxssFilepath = finalJSPath.replace(".js", ".wxss"); const pageCommonPath = `${_util.RootPrefixPlaceHolader}/pageCommon.wxss`; const compCommonPath = `${_util.RootPrefixPlaceHolader}/compCommon.wxss`; const wxssCode = `@import '${pageCommonPath}'; @import '${compCommonPath}';`; newWxOutFiles[wxssFilepath] = wxssCode; return newWxOutFiles; }; exports.handleChanged = handleChanged;