Browse Source

master

master
邓宏 3 years ago
parent
commit
d50ac1f549
  1. 14
      src/view/demo.vue
  2. 3
      vite.config.js

14
src/view/demo.vue

@ -1,14 +0,0 @@
<style lang="less" scoped>
</style>
<template>
<h1 @click="$router.go(-1)">demo page</h1>
</template>
<script setup>
import { onActivated, reactive } from "vue"
console.log(">>>>>>>>>>>>---------demo---------setup---------")
onActivated(()=>{
console.log(">>>>>>>>>>>>>------demo-----------activated-------")
})
</script>

3
vite.config.js

@ -27,8 +27,7 @@ export default defineConfig({
brotliSize: false, // 压缩代码
rollupOptions:{
input:{ // 多项目打包
// index: path.resolve(__dirname, 'index.html'),
demo: path.resolve(__dirname, './src/demo.js'),
index: path.resolve(__dirname, 'index.html'),
},
// external:['vue'], // 控制插件不编译
output: {

Loading…
Cancel
Save