You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
600 B
2 lines
600 B
"use strict";var _path=_interopRequireDefault(require("path")),_koaMount=_interopRequireDefault(require("koa-mount")),_config=_interopRequireDefault(require("@hap-toolkit/shared-utils/config")),_createPreview=_interopRequireDefault(require("./create-preview"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function beforeStart(e,t){const r=_path.default.resolve(_config.default.projectPath,_config.default.outputPath),u=await(0,_createPreview.default)(r);t.use((0,_koaMount.default)("/",u))}module.exports={beforeStart:beforeStart};
|
|
//# sourceMappingURL=index.js.map
|
|
|