desktop_task_schedule/code/web/task_schedule/vite.config.js

33 lines
643 B
JavaScript
Raw Normal View History

2023-02-15 05:07:17 +00:00
/*
* @Author: Kane
* @Date: 2023-02-15 09:25:52
* @LastEditors: Kane
2023-02-27 17:16:49 +00:00
* @LastEditTime: 2023-02-28 01:06:12
2023-02-15 05:07:17 +00:00
* @FilePath: /task_schedule/vite.config.js
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
2023-02-27 17:16:49 +00:00
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path';
2023-02-15 05:07:17 +00:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
base: './',
2023-02-27 17:16:49 +00:00
resolve: {
//配置别名
alias: [
{
find: /^~/,
replacement: '',
},
{
find: '@',
replacement: path.resolve(__dirname, 'src'),
},
],
},
});