Skip to content

Commit bade00a

Browse files
author
yangfan19
committed
webpack
1 parent 8f00102 commit bade00a

22 files changed

+11604
-1
lines changed

webpack-01/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
一个简单的例子开始<br />
44
执行
5+
56
`./node_modules/.bin/webpack`
67

8+
或者执行:
9+
10+
`npm run build`
11+
712

813

webpack-01/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"build": "webpack"
89
},
910
"keywords": [],
1011
"author": "",

webpack-02/.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/idea
6+
/dist
7+
/es
8+
/lib
9+
10+
# misc
11+
.idea
12+
.vscode
13+
.DS_Store
14+
15+
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*

webpack-02/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# webpack-02
2+
3+
## 多入口配置
4+
webpack的入口entry<br />
5+
6+
webpack的output:用来webpack如何将编译后的文件输出到磁盘
7+
8+
9+

0 commit comments

Comments
 (0)