Vue3 + Pinia + Vite5 仿抖音,完全度90% . Vue3 + Pinia + Vite5 imitate TikTok with 90% completeness
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
458 B

// vue.config.js
const isProduction = process.env.NODE_ENV === 'production'
module.exports = {
// 选项...
publicPath: isProduction ? '' : '',
assetsDir: isProduction ? './' : './',
// configureWebpack: config => {
// config.externals = {
// "vue": "Vue",
// "vue-router": "VueRouter",
// }
// },
// 是否为生产环境构建生成 source map
productionSourceMap: false,
css: {},
}