当前位置:网站首页>脚手架文件目录说明、文件暴露
脚手架文件目录说明、文件暴露
2022-07-24 10:12:00 【半夜删你代码·】
脚手架文件目录说明
dist:浏览器运行时的根目录
node_modules:项目依赖
public:里面的静态资源在打包时不会受到webpack的影响,直接把东西复制到dist里面,(相当于开始时的根目录)
src 里面的assets里面也是放静态资源,会受到webpack的影响,里面的资源会进行压缩 最终都会返回给dist
.gitignore:版本管理忽略文件
babel.config.js:配置babel(把ES6+ 转换成ES5) babel本身不能转换,因为有一个预设,有很多插件,转换的时候依赖插件,并且还有一些配置
jsconfig.json:js的配置,baseUrl(基础路径)、paths(与baseUrl配和使用./scr/*,绝对路径)
package-lock.json:记录所安装包的详细信息(作用:查看包是否冲突,npm i时提高效率)
package.json:包的配置,至少写五项name、version、private、dependencies、devDependencies
readme:项目说明书
vue.config.js:脚手架创建项目时提供的,由于webpackconfig.js找不到
打开网页时 发请求给webpack-dev-sever 开启服务,配置 http-proxy-middleware 进行代理 所以运行可以进入页面
打包时,webpack隐藏dist文件夹,但其还是存在于内存中
文件暴露
默认暴露:出文件的时候,以default为属性,以后面的值为对象暴露
./xxx:
{
default:{
a: 100
}
}
import {default as a } from './xxx'import * as from './xxx'拿到的是暴露的整个对象
边栏推荐
- Trie tree template 2
- [STM32 learning] (12) STM32 realizes LCD1602 simple static reality
- Dynamic planning: robbing families and houses
- Spark Learning: a form of association in a distributed environment?
- How to solve command 'xxx GCC' not found, but can be installed with:??
- 2022: I feel like sleeping for the first time during the day
- 聚集日志服务器
- NIO知识点
- [STM32 learning] (10) stm32f1 general timer realizes pulse counter
- Arduino- use millis() to do two (or more) things at the same time
猜你喜欢

二叉树、二叉树排序树的实现及遍历

Ribbon's loadbalancerclient, zoneawareloadbalancer and zoneavoidancerule are three musketeers by default

Compilation and linking of programs
![[STM32 learning] (15) STM32 realizes DHT11 temperature and humidity acquisition and display](/img/f2/6fcd4b2e747b4ceb52a52eda0c1af4.png)
[STM32 learning] (15) STM32 realizes DHT11 temperature and humidity acquisition and display

Analysis of distributed lock redistribution principle

Raspberry Pie:: no space left on device

Spark Learning: using RDD API to implement inverted index

Segment tree--

给你的网站加一个爱发电角标

Spark Learning: how to choose different association forms and mechanisms?
随机推荐
Web page opening speed is very slow, how to solve it?
[STM32 learning] (12) STM32 realizes LCD1602 simple static reality
Mysql database JDBC programming
2022, our small goal
Countdownlatch and join [concurrent programming]
Deployment and analysis of coredns
Ribbon's loadbalancerclient, zoneawareloadbalancer and zoneavoidancerule are three musketeers by default
Raspberry Pie: serial port login does not display print information
How to solve command 'xxx GCC' not found, but can be installed with:??
Uniapp calendar component
Binary original code, inverse code, complement code
SMTP automatic mail sending function code
String sort
关联规则--2022年7月10日
Notes on using setupproxy
Dr. water 3
Spark Learning: implement compact table command
聚集日志服务器
zoj 2770 差分约束系统---2--2022年5月20日
[STM32 learning] (17) STM32 realizes LCD12864 display serial implementation