All Projects → ITxiaohao → webpack4-learn

ITxiaohao / webpack4-learn

Licence: other
📝 blog:https://itxiaohao.github.io/passages/webpack4-learn-introduction/

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
typescript
32286 projects

Projects that are alternatives of or similar to webpack4-learn

ultimate-hot-boilerplate
🚀 node-react universal app boilerplate with everything on hot reload, SSR, GraphQL, Flow included
Stars: ✭ 35 (-50%)
Mutual labels:  webpack4
bootpack
Create multi-page websites using bootstrap for development and webpack for task running.
Stars: ✭ 30 (-57.14%)
Mutual labels:  webpack4
webpack-alioss-upload-plugin
A flexible webpack plugin to upload files to aliyun oss, which supports multiple optional upload methods and parameters.
Stars: ✭ 14 (-80%)
Mutual labels:  webpack4
webpack-boilerplate
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)
Stars: ✭ 33 (-52.86%)
Mutual labels:  webpack4
boilerplate-react-redux-pwa
It's sample boilerplate with pwa + react + redux + redux-saga
Stars: ✭ 14 (-80%)
Mutual labels:  webpack4
react-library-template
Jumpstart your team's shared react library
Stars: ✭ 26 (-62.86%)
Mutual labels:  webpack4
MyMina
小程序工程化实践
Stars: ✭ 73 (+4.29%)
Mutual labels:  webpack4
webpack-starter
Simple webpack config with babel, scss, and lodash
Stars: ✭ 47 (-32.86%)
Mutual labels:  webpack4
Project06-A-Slack
팀 협업도구, 우리동네 슬랙 🚀
Stars: ✭ 14 (-80%)
Mutual labels:  webpack4
eleventy bundler
NOT RECOMMENDED FOR USE; see README
Stars: ✭ 19 (-72.86%)
Mutual labels:  webpack4
Vi-Ui
💙 A simple but consistent user interface made for Vue
Stars: ✭ 42 (-40%)
Mutual labels:  webpack4
webpack-demos
webpack小练习
Stars: ✭ 17 (-75.71%)
Mutual labels:  webpack4
easy-webpack-4
Webpack 4 simple example to quickly build a web application
Stars: ✭ 68 (-2.86%)
Mutual labels:  webpack4
eruda-webpack-plugin
A webpack plugin of eruda to help you develop mobile app
Stars: ✭ 56 (-20%)
Mutual labels:  webpack4
minimal-flask-react
🍸 A minimal modern setup for flask and react
Stars: ✭ 120 (+71.43%)
Mutual labels:  webpack4
webpack-playground
No description or website provided.
Stars: ✭ 16 (-77.14%)
Mutual labels:  webpack4
webpack4-boilerplate
webpack4打包模板
Stars: ✭ 36 (-48.57%)
Mutual labels:  webpack4
webpack-boilerplate
Webpack 4 boilerplate with Babel, Bootstrap 4, jQuery and SCSS on board
Stars: ✭ 24 (-65.71%)
Mutual labels:  webpack4
cruise
A Continuous Integration (CI) management system homework from Thought Works
Stars: ✭ 13 (-81.43%)
Mutual labels:  webpack4
nativescript-dev-webpack
A package to help with webpacking NativeScript apps.
Stars: ✭ 98 (+40%)
Mutual labels:  webpack4

项目说明

此项目总共 24 小节,前 15 节基于 Webpack4 渐进式教程 为基础,加上自己的实践和理解得出,感谢 心谭 😄

Webpack4 渐进式教程 的基础上升级:

  • 使用 babel7
  • 配置 .browserslistrc 文件
  • 使用 mini-css-extract-plugin 替代 extract-text-webpack-plugin
  • 使用 optimize-css-assets-webpack-plugin 压缩 css
  • 使用 postcsscss 加上各个浏览器前缀
  • 使用 image-webpack-loader 处理图片

随后的章节以 mooc手把手带你掌握新版 Webpack4.0 整理的学习笔记,感谢 DellLee 老师 😄

目录:

  1. 搭建项目并打包 JS 文件
  2. 生产和开发模式
  3. 覆盖默认 entry/output
  4. 用 Babel 7 转译 ES6
  5. Code Splitting
  6. Lazy Loading、Prefetching
  7. 自动生成 HTML 文件
  8. 处理 CSS/SCSS 文件
  9. JS Tree Shaking
  10. CSS Tree Shaking
  11. 图片处理汇总
  12. 字体文件处理
  13. 处理第三方 js 库
  14. 开发模式与 webpack-dev-server
  15. 开发模式和生产模式・实战
  16. 打包自定义函数库
  17. PWA 配置
  18. TypeScript 配置
  19. Eslint 配置
  20. 使用 DLLPlugin 加快打包速度
  21. 多页面打包配置
  22. 编写 loader
  23. 编写 plugin
  24. 编写 Bundle

环境如下:

OS: 「win10」
node: 「10.5.0」
npm: 「6.1.0」
webpack: 「4.29.6」
webpack-cli: 「3.2.3

每一个章节对应一个 demo 👉 配套的文档地址

有错误请提 issue

觉得有帮助的小伙伴不妨点个 star~

关于我

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].