Vue 教程(二十七)webpack 配置文件 webpack.config.js
- npm 初始化
- webpack.config.js
- 开发时依赖
项目配置
- 在项目根目录下新建 webpack.config.js 文件,配置文件中 path 属性,需要绝对路径,因此需要的初始化 npm 获得 node 中内置的 path 变量,以获得当前绝对路径,命令执行成功后,自动生成:package.json 文件
npm 初始化:npm init
## 包名meet
package name: (webpack) meet
## 版本号
version: (1.0.0)
## 描述
description:
## 入口
entry point: (webpack.config.js)
## test执命令
test command:
## git仓库地址
git repository:
## 关键字
keywords:
## 作者
author:
## 开源协议
license: (ISC)
## 生成文件
About to