Skip to content

Commit

Permalink
remove debug config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacky authored and Jacky committed Jul 30, 2023
1 parent a7288e1 commit c8f10a3
Show file tree
Hide file tree
Showing 9 changed files with 331 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/ccip-b3745bba.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

290 changes: 290 additions & 0 deletions assets/index-0b6b5a8e.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/index-23526dab.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/index-8cce0a79.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/index-efe0fbcc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions assets/index.es-cfd0772e.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<title>SelfCrypto</title>

<script type="module" crossorigin src="/selfcrypto/assets/index-3802bcce.js"></script>
<script type="module" crossorigin src="/selfcrypto/assets/index-0b6b5a8e.js"></script>
<link rel="stylesheet" href="/selfcrypto/assets/index-97aa736c.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion web3/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ axios.defaults.withCredentials = false;
Vue.prototype.$axios = axios;

// ignore console.log
// console.log = ()=>{}
console.log = ()=>{}

// const i18n = new VueI18n({
// locale: 'en-US', // 语言标识, 通过切换locale的值来实现语言切换,this.$i18n.locale
Expand Down
8 changes: 8 additions & 0 deletions web3/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ export default defineConfig({
cache: false,
},
outDir: "../selfcrypto",

terserOptions: {
compress: {
//生产环境时移除console
drop_console: true,
drop_debugger: true,
},
},
},
plugins: [
// vue()
Expand Down

0 comments on commit c8f10a3

Please sign in to comment.