提交 4d54af22 编写于 作者: D DCloud_LXH

Merge branch 'master' of https://gitee.com/dcloud/unidocs-zh into vuepress

......@@ -350,3 +350,21 @@
}
}
```
- App,小程序端源码调试,需要在 vite.config.js 中主动开启 sourcemap
```js
import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
/**
* @type {import('vite').UserConfig}
*/
export default defineConfig({
build: {
sourcemap: true,
},
plugins: [uni()],
});
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册