vue本地项目静态资源管理
统一放在src/static里面css,images,js
index.html里面使用重置样式
<link rel="stylesheet" href="static/css/reset.css">
组件里面使用图片 <div><img src="/static/img/img1.jpg"></div>
css使用背景图片
background: url(/static/img/img1.jpg) no-repeat;
npm run build之前需要将config/index.js
assetsPublicPath: '/' 修改成 assetsPublicPath: './'
打包之后网站根目录www里面直接放static目录和index.html