Giter Site home page Giter Site logo

webpack-step's Introduction

webpack-step

webpack 主要功能学习,一步步实现webpack 的项目构建。

  1. 实现webpack实现项目构建的基本功能,输入输出;
  2. 加入html-webpack-plugin 自动实现模版的js 引入;
  3. babel-loader 实现es6 语法转 es5 语法;
  4. 利用 webpack-dev-server 实现热加载和开启服务功能;
  5. devtool='inline-source-map' 实现开发状态下的调试;
  6. yargs-parser 模块解析命令行参数;
  7. 利用 cross-env(运行跨平台设置和使用环境变量的脚本),保证windows 和 linux 的 环境变量设置统一;
  1. 增加对于sass,less 的解析功能;
  2. 增加对于图片,文件的加载解析;
  3. 增加eslint 实现语法检查;
  4. 代码分离,分离第三方模块代码;
  5. js和css 分离开来; mini-css-extract-plugin
  6. 加入依赖可视化查看工具 webpack-bundle-analyzer;
  7. shim 预置依赖;

-

webpack-step's People

Contributors

chrissong1994 avatar

Stargazers

 avatar

Watchers

 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.