Commit 14b82b5d authored by hewenhao's avatar hewenhao

chore: build

parent 80c7dc77
This diff is collapsed.
......@@ -7,7 +7,7 @@ const execa = require("execa");
const resolve = d => path.resolve(__dirname, d);
const bin = cmd => resolve("../node_modules/.bin/" + cmd);
const { watch, lint, ...rest } = args;
const { watch, lint } = args;
let cmd = "build";
......@@ -17,9 +17,9 @@ if (lint) {
cmd = "serve";
}
let deployMode = args._[0] || 'production';
if (cmd === 'serve') {
deployMode = 'test';
let deployMode = args._[0] || "production";
if (cmd === "serve") {
deployMode = "test";
}
process.env.VUE_APP_DEPLOY_MODE = deployMode;
......
......@@ -4,6 +4,7 @@ const { merge } = require("webpack-merge");
module.exports = {
publicPath: "./",
parallel: process.env.NODE_ENV !== "production",
outputDir: "mall-webview",
productionSourceMap: false,
devServer: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment