Skip to content

darrell0904/webpack-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

安装运行

# clone 项目
git clone git@github.com:darrell0904/webpack-doc.git

# 安装依赖
npm install

# 启动项目
npm run dev

 

写文档的原因

因为现在对于 webpack 的配置了解的不够全面,比较碎片话,同时有些很新的概念一直都没有应用。

这是我写这个文档原因,让自己更加系统全面的掌握 webpack ,毕竟 webpack 5.0 快要来了。

此篇文档的 webpack 的版本是 4.0

 

github 图片出不来?

  • 首先打开 host 文件
sudo vi /etc/hosts
  • 接着添加以下内容
# GitHub Start

192.30.253.112    github.com
192.30.253.119    gist.github.com
199.232.28.133    assets-cdn.github.com
199.232.28.133    raw.githubusercontent.com
199.232.28.133    gist.githubusercontent.com
199.232.28.133    cloud.githubusercontent.com
199.232.28.133    camo.githubusercontent.com
199.232.28.133    avatars0.githubusercontent.com
199.232.28.133    avatars1.githubusercontent.com
199.232.28.133    avatars2.githubusercontent.com
199.232.28.133    avatars3.githubusercontent.com
199.232.28.133    avatars4.githubusercontent.com
199.232.28.133    avatars5.githubusercontent.com
199.232.28.133    avatars6.githubusercontent.com
199.232.28.133    avatars7.githubusercontent.com
199.232.28.133    avatars8.githubusercontent.com

# GitHub End
  • 保存,退出,重新刷新 github 页面

具体原因大家可以参考这篇文章:解决github图片不显示的问题

 

项目截图

整个文档是用 vuepress 搞得,截图如下:

 

项目文章目录

初识 Webpack

 

Webpack 核心概念

 

Webpack 高级概念

 

Webpack 实战配置案例

 

Webpack 性能优化

 

编写可维护 Webpack 构建配置

 

Webpack 底层原理

 

React、Vue框架脚手架配置分析

 

一些实战例子

 

一些补充

 

未完待续。。。

 

文档地址

文档地址:webpack-doc 学习文档

 

参考资料

这里列举了笔者学习 webpack 的主要来源,其余的参考资料我会再每一节发出来。

About

webpack5.0 快出来了,和我一起再系统性的过一遍 webpack4.0吧!!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published