v1.3.1
版本发布时间: 2021-12-13 16:36:33
jzfai/vue3-admin-plus最新发布版本:v2.2.0(2023-12-13 16:38:25)
v1.3.1
Features
-
vite.config.js
/* * "/vue3-admin-plus" nginx deploy folder * detail to look https://vitejs.cn/config/#base * */ base: `/${packageJson.name}/`, //add assetsDir rollupOptions config build: { minify: 'terser', brotliSize: false, chunkSizeWarningLimit: 2000, //remote console.log in prod terserOptions: { compress: { drop_console: true, drop_debugger: true } }, //build assets Separate assetsDir: 'static/assets', rollupOptions: { output: { chunkFileNames: 'static/js/[name]-[hash].js', entryFileNames: 'static/js/[name]-[hash].js', assetFileNames: 'static/[ext]/[name]-[hash].[ext]' } } },
. add vscode recommend config -> .vscode folder
. add image upload and Add watermark demo, you can look for
Bug fixes
Refactors
-
remove vite.config.js extensions , Adapted to vite 2.4.1, so you need add .vue extension when import file, why remove it you can look for https://github.com/vitejs/vite/issues/6026
resolve: { alias: { '~': resolve(__dirname, './'), '@': resolve(__dirname, 'src') } //remove it //extensions: ['.js', '.ts', '.jsx', '.tsx', '.json', '.vue', '.mjs'] },
-
in hooks Folder , rename the file name start with use.. , Adapted to hook writing specification
├── hooks │ ├── useErrorLog.js
│ ├── useTablePage.js │ ├── useTest.js
version update
```json
vue 3.2.25
vite 2.4.1
element-plus 1.2.0-beta.6