refactor: update package.json and improve ESLint configuration
- Removed outdated Vue CLI plugins and added new ESLint rules and plugins for better TypeScript support. - Enhanced ESLint configuration with parser options and overrides for Vue files. feat: refactor router configuration for improved readability - Reformatted router configuration for better structure and clarity. - Ensured consistent use of async component imports and updated route definitions. chore: update TypeScript configuration for better compatibility - Adjusted tsconfig.json to target ES2020 and include necessary libraries. - Added a new tsconfig.node.json for Node.js specific configurations. fix: update Vite configuration for proper asset handling - Modified vite.config.js to specify input for Rollup, ensuring correct asset management.
This commit is contained in:
@@ -97,6 +97,7 @@ export default defineConfig(({ mode }) => {
|
||||
assetsDir: "assets",
|
||||
// 分包策略
|
||||
rollupOptions: {
|
||||
input: path.resolve(__dirname, "public/index.html"),
|
||||
output: {
|
||||
manualChunks: {
|
||||
vendor: ["vue", "vue-router", "vuex"],
|
||||
|
||||
Reference in New Issue
Block a user