Skip to content

Commit 1391d7b

Browse files
committed
webpack基本的使用
1 parent d6389e2 commit 1391d7b

File tree

6 files changed

+576
-27
lines changed

6 files changed

+576
-27
lines changed

image/2019-09-03_113320.png

61.2 KB
Loading

image/2019-09-03_142933.png

128 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
/dist

webpack/study01/day1/webpack_demo/package-lock.json

+7-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack/study01/day1/webpack_demo/webpack.config.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ module.exports = {
6868
})
6969
]
7070

71-
// watch: true, //false
72-
// watchOptions: {
73-
// //默认为空,不监听的文件或者目录,支持正则
74-
// ignored: /node_modules/,
75-
// //监听到文件变化后,等300ms再去执行,默认300ms,
76-
// aggregateTimeout: 300,
77-
// //判断文件是否发生变化是通过不停的询问系统指定文件有没有变化,默认每秒问1次
78-
// poll: 1000//ms
79-
// }
71+
// watch: true, //false
72+
// watchOptions: {
73+
// //默认为空,不监听的文件或者目录,支持正则
74+
// ignored: /node_modules/,
75+
// //监听到文件变化后,等300ms再去执行,默认300ms,
76+
// aggregateTimeout: 300,
77+
// //判断文件是否发生变化是通过不停的询问系统指定文件有没有变化,默认每秒问1次
78+
// poll: 1000//ms
79+
// }
8080
};

0 commit comments

Comments
 (0)