• Stars
    star
    480
  • Rank 91,562 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Simple, Powerful Webpack Front-End Development Solution

easywebpack

NPM version build status Test coverage David deps npm download

基于 Webpack 的前端构建工程化解决方案 easywebpack

安装

npm install easywebpack --save-dev

文档与总结

版本说明

  • easywebpack 5.x.x > Webpack 5.x.x + Babel 7
  • easywebpack 4.x.x > Webpack 4.x.x + Babel 6
    • @easy-team/easywebpack 4.x.x > Webpack 4.x.x + Babel 7
  • easywebpack 3.x.x > Webpack 3.x.x + Babel 6

基础功能

easywebpack

  • 支持服务端渲染, 前端渲染, 静态页面渲染三种构建方式
  • 支持单页面, 多页面服务端渲染构建模式
  • 默认支持 dev,test, prod 环境配置
  • 集成 webpack-hot-middleware 热更新实现, 支持 css inline 和 css extract 热更新
  • 支持 entry 原生配置和目录遍历自动构造 entry 功能
  • 支持自动根据后缀名构建 entry 文件,比如 .vue.jsx 文件为入口文件
  • 支持 es6 class 继承方式编写 Webpack 配置
  • 支持 js/css/image 压缩, 内置支持 CDN 特性
  • 支持 css/sass/less/stylus, 支持css module 和 css extract 特性
  • 支持 loader 是否启用,合并,覆盖配置
  • 支持 plugin 是否启用,合并,覆盖配置
  • 支持 loader 和 plugin npm module 是否启用,按需安装
  • 支持 eslint, postcss 等特性
  • 支持 dll 构建解决方案
  • 支持 webpack typescript 构建
  • 提供 easywebpack-cliwebpack-tool 辅助工具。

easywebpack不与任何框架耦合, 你需要基于现有的解决方案使用或者扩展解决方案使用

工程化

easywebpack

解决方案

基于 easywebpack 基础骨架,目前已扩展 Vue React Weex, HTML, Javascript 五种解决方案:

使用

// ${root}/webpack.config.js
const easywebpack = requier('easywebpack-react');
const env = process.env.BUILD_ENV; // support dev/test/prod
const webpackConfig = easywebpack.getWebpackConfig({
  env,
  target: 'web',
  entry: {
    index: 'src/app.js'
  }
});
module.exports = webpackConfig;

命令行工具

easywebpack-cli 基于 easywebpack 前端工程化解决方案构建的脚手架命令行工具。

  • 支持 Vue/React/Weex/HTML 框架项目的初始化,包括 SPA 应用,多页面应用,Server Side Render(Egg)项目
  • 支持命令行 Webpack 构建,包括 Webpack 配置信息打印(调试)和获取
  • 提供构建结果 UI 导航展现和访问。

项目骨架

以上骨架可以通过 easywebpack-cli 初始化

License

MIT

More Repositories

1

egg-vue-webpack-boilerplate

Egg Vue Server Side Render (SSR) / Client Side Render (CSR)
JavaScript
1,362
star
2

egg-react-webpack-boilerplate

Egg React Server Side Render(SSR) / Client Sider Render(CSR)
JavaScript
671
star
3

easywebpack-cli

A Powerful Cross-platform Webpack CLI Tool
JavaScript
122
star
4

egg-view-vue-ssr

Egg Vue Server Side Render (SSR) Plugin
JavaScript
95
star
5

egg-vue-typescript-boilerplate

Egg Vue TypeScript Server Side Render (SSR) / Client Side Render (CSR)
TypeScript
72
star
6

egg-webpack

Egg Webpack Dev Server Plugin, Support Memory File and Hot-Reload
JavaScript
68
star
7

egg-view-react-ssr

Egg React Server Side Render (SSR) Plugin
JavaScript
62
star
8

egg-react-typescript-boilerplate

Egg React TypeScript Server Side Render (SSR) / Client Side Render (CSR)
TypeScript
56
star
9

vscode-web-ide

VSCode Web IDE
JavaScript
44
star
10

easywebpack-vue

Vue Webpack Building Solution, Support Vue Server Side Render (SSR), Client Side Render (CSR) Building
JavaScript
29
star
11

ves

Vue SSR(Server Side Render) Web Framework for Egg
JavaScript
22
star
12

easywebpack-react

React Webpack Building Solution, Support React Server Side Render (SSR), Client Side Render (CSR) Building
JavaScript
14
star
13

easywebpack-multiple-html-boilerplate

HTML静态多页面Webpack构建工程化解决方案骨架
JavaScript
13
star
14

webpack-tool

Webpack Build Tool, Support Webpack Build Ui View.
JavaScript
13
star
15

ves-admin

Egg Vue TypeScript SSR (Server Side Render) Example for Ves Node Framework
TypeScript
13
star
16

easywebpack-weex

A Simple Weex + Vue + Webpack Build Solution
JavaScript
7
star
17

egg-webpack-vue

Vue Server-Side Rendering Webpack Memory Compilation Plugin for Egg
JavaScript
7
star
18

easywebpack-html

HTML静态多页面Webpack构建工程化解决方案
JavaScript
7
star
19

awesome

easyj examples, include react, vue, typescript, webpack demos
JavaScript
6
star
20

easyjs

easyjs 专注 Egg, 前端工程, 多端技术等领域,涉及 Egg Vue SSR 服务端渲染,Egg React SSR 服务端渲染, Webpack 前端工程化,Serverless, Flutter等技术学习和实践。期望通过工程体系方式来实现整个大前端工程体系的建设, 让前端开发效率能够得到显著提升!
6
star
21

easy-team.github.io

https://easyjs.cn - easyjs 专注 Egg, 前端工程, 多端技术等领域,涉及 Egg Vue SSR服务端渲染,Egg React SSR服务端渲染, Webpack 前端工程化,Serverless, Flutter等技术学习和实践。期望通过工程体系方式来实现整个大前端工程体系的建设, 让前端开发不再繁琐, 效率也能够得到显著提升!
HTML
5
star
22

vue-entry-loader

Vue Entry Template Initialization Code for easywebapck
JavaScript
5
star
23

egg-webpack-react

React Server-Side Rendering Webpack Memory Compilation Plugin for Egg
JavaScript
4
star
24

node-tool-utils

Node Cross-Platform Tool Library
JavaScript
3
star
25

res

React SSR (Server Side Render ) Node Web Framework for Egg
JavaScript
3
star
26

react-entry-template-loader

React Entry Template Loader for easywebapck
JavaScript
3
star
27

ves-cli

Vue SSR Framework CLI
JavaScript
2
star
28

vue-slider-gif-maker

Vue体系下的,拖拽截图生成gif的vue组件
Vue
2
star
29

easywebpack-js

Webpack Javascript Lib Building
JavaScript
2
star
30

easywebpack-weex-boilerplate

weex native and web building project boilerplate for easywebpack-weex
JavaScript
2
star
31

res-cli

React Server Side Render(SSR) - Res Framework Command CLI
JavaScript
2
star
32

egg-render-service

Node Render Service
JavaScript
2
star
33

puppeteer-html-prerender-webpack-plugin

Puppeteer 预渲染实现前端渲染页面 SSR 渲染
JavaScript
2
star
34

render-package-build

Vue/React Render Service Package Build Script
JavaScript
1
star
35

res-awesome

Node React Web Awesome for Res Server Side Render Framework
TypeScript
1
star
36

npm-package-template

NPM package template, It's easy for you to implement a NPM package
JavaScript
1
star
37

webpack-hot-css-entry

Webpack Css Hot Reload
JavaScript
1
star
38

egg-webpack-rax

Rax SSR Webpack Memory Development Plugin for Egg
JavaScript
1
star
39

vscode-easy-plugin

easyjs vscode plugin
JavaScript
1
star