Skip to content

Commit

Permalink
🧐 test(custom): 本地测试完成,测试release环境
Browse files Browse the repository at this point in the history
  • Loading branch information
master1lan committed Feb 19, 2023
1 parent 7d2f1f5 commit cf38ad8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ fileList.forEach((file) => {
if (path.extname(full_name_file) === ".map") {
fs.unlinkSync(full_name_file);
} else if (path.extname(full_name_file) === ".js") {
console.log(full_name_file);
const data = fs.readFileSync(full_name_file, "utf-8");
const result = data.replace(
RegExp(`//# sourceMappingURL=[0-9A-Za-z-]*.js.map`, "g"),
Expand Down
3 changes: 3 additions & 0 deletions config/vite.master.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ import vitedevConfig from "./vite.dev.config";
export default mergeConfig(
vitedevConfig,
defineConfig({
define: {
isdev: false,
},
plugins: [
legacy({
// 设置目标浏览器,browserslist 配置语法
Expand Down

0 comments on commit cf38ad8

Please sign in to comment.