Code Monkey home page Code Monkey logo

oulae_webpack's Introduction

what

该项目是自己在学习 webpack 时,自己搭建的一个基于 React + webpack 的学习环境

实现功能

  1. 支持 React 路由的动态引入
  2. 自定义 loader: clean-log-loader; 其作用是将 js 文件中的 console.log 清除
  3. 自定义 plugin: inline-chunk-webpack-plugin; 其作用是将 runtime 文件嵌入 index.html 产物中
  4. 开发环境支持接口代理转发
  5. eslint 代码检查
  6. js 产物代码分割
  7. js, css 产物压缩

什么场景下使用该项目

如果存在以下的场景,可以使用该项目去搭建 demo:

  1. 如果需要尝试不同的 webpack 配置时
  2. 自定义 loader, plugin 时
  3. 需要写一个基于 React 的 demo 时

oulae_webpack's People

Contributors

ouleworld 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.