Explorar el Código

添加scss语法限制 和打包配置

lm hace 3 semanas
padre
commit
25dfcbf0f7

+ 1 - 1
src/App.vue

@@ -5,7 +5,7 @@
   <router-view />
 </template>
 
-<style scoped>
+<style scoped lang="scss">
 .logo {
   height: 6em;
   padding: 1.5em;

+ 1 - 4
src/components/questionConfig/QuestionnaireBaseForm.vue

@@ -38,7 +38,4 @@ watch(()=>formData.value,(newVal)=>{
     emit('formChange',newVal)
 },{deep:true})
 
-</script>
-
-
-<style lang="scss" scoped></style>
+</script>

+ 1 - 1
src/layout/components/AppMain.vue

@@ -53,7 +53,7 @@ export default {
 
 </script>
 
-<style scoped>
+<style scoped lang="scss">
 .container {
     /* border:solid blue 2px; */
 

+ 1 - 5
src/layout/index.vue

@@ -34,8 +34,4 @@ const horizontalNavList = computed(()=>{
   }
 })
 
-</script>
-
-<style>
-
-</style>
+</script>

+ 4 - 4
vite.config.ts

@@ -4,7 +4,7 @@ import path from 'path' // 引入 Node.js 的 path 模块
 // https://vite.dev/config/
 export default defineConfig({
 
-  base:process.env.NODE_ENV === 'production' ? ' /teacherStudy/' : '/' ,  //测试环境配置,生产环境不需要
+  base:process.env.NODE_ENV === 'production' ? ' /evaluation/' : '/' ,  //测试环境配置,生产环境不需要
 
   plugins: [vue()],
   resolve: {
@@ -14,9 +14,9 @@ export default defineConfig({
     extensions: ['.ts', '.js', '.vue', '.json'] // 添加这一行
   },
   
-  esbuild: {
-      drop: process.env.NODE_ENV === 'production' ? ['console', 'debugger'] : []
-  },
+  // esbuild: {
+  //     drop: process.env.NODE_ENV === 'production' ? ['console', 'debugger'] : []
+  // },
 
   server: {
     host: '0.0.0.0',//允许所有ip访问