Skip to content

Commit

Permalink
docs(docs): 更新readme,修改了配置
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxue committed Dec 9, 2019
1 parent a84dff0 commit a2cc0ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* **feat:** aaaaa ([73abf42](https://github.com/luoxue-victor/learn_webpack/commit/73abf42))
* **feat:** asdada ([64090c7](https://github.com/luoxue-victor/learn_webpack/commit/64090c7))
* **init:** 项目初始化 ([d7835fb](https://github.com/luoxue-victor/learn_webpack/commit/d7835fb))
* **lint-staged:** 添加 lint-staged,并修改课题10文档 ([a84dff0](https://github.com/luoxue-victor/learn_webpack/commit/a84dff0))
* **options-chain:** 增加可选链并完善文档 ([b188007](https://github.com/luoxue-victor/learn_webpack/commit/b188007))
* **plugin:** 增加课题8 写一个webpack插件 ([0d021ce](https://github.com/luoxue-victor/learn_webpack/commit/0d021ce))
* **sourcemap:** 开启了sourcemap ([5022873](https://github.com/luoxue-victor/learn_webpack/commit/5022873))
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,20 @@ module.exports = function(config) {
* @param {string} entry 入口
* @param {string} output 出口
* @param {string} publicPath
* @param {string} port
* @param {string} port 端口
* @param {object} eslint eslint 配置
*/
return {
entry: "src/main.js",
output: "dist",
publicPath: "/common/",
port: 8888,
eslint: {
lintOnSave: true, // 开启运行时检测
extensions: ["js", "jsx", "vue"] // 默认 ['js', 'jsx']
},
dll: {
venders: ["vue", "react"]
venders: ["react"]
},
pages: {
index: {
Expand Down

0 comments on commit a2cc0ed

Please sign in to comment.