Giter VIP home page Giter VIP logo

learn_webpack's Introduction

webpack 学习笔记

1-6 开发环境的搭建

webpack 基础功能:打包js,json

webpack 打包js,json,less,css

打包 html资源

打包html资源,加载字体,处理样式中的图片和html中imag的图片,清理打包目录

热加载 webpack-dev-server

demo1-5总结:开发环境的搭建

7-13生产环境配置

提取css成单独文件,将css和js分离,css兼容性处理

压缩css

eslint 语法检查

js 兼容性处理

压缩js,html

生产环境配置介绍

13-21性能优化

开发环境性能优化:HMR,source-map

开发环境性能优化:oneOf

生产环境性能优化:缓存

生产环境性能优化:tree-shaking

代码分割

懒加载

PWA

多进程打包,externals

dll 对代码进行单独打包

npm install

打包命令

webpack

热加载

npx webpack-dev-server

learn_webpack's People

Contributors

jasonmann1993 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.