使用 javascript-obfuscator 做标识符重命名、字符串数组编码和常量拆分。 在 vite build 后增加生产环境混淆步骤,开发环境保持源码可读。 关闭 sourcemap,避免直接暴露原始源码。 当前主包约 1.7 MB,建议先拆出第三方依赖,再只混淆应用自身代码,而不是整个 dist。
20 lines
792 B
HTML
20 lines
792 B
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" type="image/png" href="/favicon.png?v=2" sizes="256x256" />
|
|
<title>Spine粒子编辑器-Yeomai</title>
|
|
<style>
|
|
html, body { margin: 0; padding: 0; background: #111; color: #eee; font-family: system-ui, -apple-system, sans-serif; }
|
|
#app { display: flex; flex-direction: column; height: 100vh; }
|
|
</style>
|
|
<script type="module" crossorigin src="/assets/index-uew0C5KI.js"></script>
|
|
<link rel="modulepreload" crossorigin href="/assets/vendor-Cb_6CYmx.js">
|
|
<link rel="stylesheet" crossorigin href="/assets/index-DtKmj2iL.css">
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
</body>
|
|
</html>
|