随笔分类 -  Vue

摘要:修改 emacs node_modules/vue-loader/lib/template-compiler/index.js 将以下代码中的 babylon 替换 babel if (!isProduction) { code = prettier.format(code, { semi: fal 阅读全文
posted @ 2023-10-07 15:22 snake_j 阅读(57) 评论(0) 推荐(0)
摘要:####npm ``` $ npm install vue-json-viewer@2 --save // Vue2 $ npm install vue-json-viewer@3 --save // Vue3 ``` ####例子 ``` import JsonViewer from 'vue-j 阅读全文
posted @ 2023-07-12 10:10 snake_j 阅读(359) 评论(0) 推荐(0)
摘要:#### 方法1 修改文件 : ..../node_modules/vue-loader/lib/template-compiler/index.js ``` //原来是这样的 if (!isProduction) { code = prettier.format(code, { semi: fal 阅读全文
posted @ 2023-07-11 11:58 snake_j 阅读(124) 评论(0) 推荐(0)