摘要:
我们一般会在 src 目录下的 assets 的文件夹里面统一放置 css 文件和图片。 一、css 1、全局引入 在 main.js 中: import "./assets/css/common.css"; 2、组件引入 <style lang="scss" scoped> @import ".. 阅读全文
posted @ 2021-05-31 11:19
smil、梵音
阅读(7225)
评论(0)
推荐(2)
摘要:
一般在 vue.config.js 我们会配置一些代理;或者配置一些 alias 之类的别名,主要用来在项目中方便引入组件。 vue.config.js 的简单配置: // alias 设置路径别名需要引入 path,定义 resolve const path = require("path"); 阅读全文
posted @ 2021-05-31 11:16
smil、梵音
阅读(239)
评论(0)
推荐(0)

浙公网安备 33010602011771号