更新
This commit is contained in:
Generated
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.initOptions = void 0;
|
||||
const uni_cli_shared_1 = require("@dcloudio/uni-cli-shared");
|
||||
function resolveBase() {
|
||||
const manifest = (0, uni_cli_shared_1.parseManifestJsonOnce)(process.env.UNI_INPUT_DIR);
|
||||
const webManifest = (0, uni_cli_shared_1.getPlatformManifestJson)(manifest, 'h5');
|
||||
return (webManifest && webManifest.router && webManifest.router.base) || '/';
|
||||
}
|
||||
function initOptions(options, config) {
|
||||
options.base = resolveBase();
|
||||
options.outputDir = process.env.UNI_OUTPUT_DIR;
|
||||
options.assetsDir = config.build.assetsDir;
|
||||
}
|
||||
exports.initOptions = initOptions;
|
||||
Reference in New Issue
Block a user