All Projects → sayll → Avalon Webpack Start

sayll / Avalon Webpack Start

Licence: mit
webpack3.X(启用tree-shaking,作用域提升功能等),加速项目启动

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Avalon Webpack Start

Workflow
一个工作流平台
Stars: ✭ 1,888 (+878.24%)
Mutual labels:  webpack, dll
That React App You Want
That react app you always wanted: [email protected], [email protected], postCSS, purifycss, dll's and code splitting examples, bregh. Highly opinionated but you better like it.
Stars: ✭ 27 (-86.01%)
Mutual labels:  webpack, dll
Wxapp Webpack Plugin
📦 微信小程序 webpack 插件
Stars: ✭ 185 (-4.15%)
Mutual labels:  webpack
Tv
全球直播流聚合
Stars: ✭ 192 (-0.52%)
Mutual labels:  webpack
Vue Plugin Template
🚀 Solid foundation to start a Vue plugin with the best developer experience and a focus on performance
Stars: ✭ 189 (-2.07%)
Mutual labels:  webpack
Bolt
The Bolt Design System provides robust Twig and Web Component-powered UI components, reusable visual styles, and powerful tooling to help developers, designers, and content authors build, maintain, and scale best of class digital experiences.
Stars: ✭ 186 (-3.63%)
Mutual labels:  webpack
Quickshare
Quick and simple file sharing between different devices.
Stars: ✭ 190 (-1.55%)
Mutual labels:  webpack
Snailjs
SnailJS - Slow and thoughtful development with Node and React
Stars: ✭ 184 (-4.66%)
Mutual labels:  webpack
X3daudio1 7 hrtf
HRTF for Arma 3, Skyrim, and other titles that use XAudio2 + X3DAudio
Stars: ✭ 192 (-0.52%)
Mutual labels:  dll
Livetv mining
直播网站数据采集
Stars: ✭ 188 (-2.59%)
Mutual labels:  webpack
Crate
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: ✭ 2,281 (+1081.87%)
Mutual labels:  webpack
Phaser Project Template
🕹️ Phaser 3 - Starter Template with TypeScript and webpack.
Stars: ✭ 186 (-3.63%)
Mutual labels:  webpack
Webpack2 Lessons
📖《webpack2 包教不包会》
Stars: ✭ 187 (-3.11%)
Mutual labels:  webpack
Webpack By Sample
Learn webpack by sample, each of the samples contains a readme.md file that indicates the purpose of the sample plus an step by step guide to reproduce it.
Stars: ✭ 190 (-1.55%)
Mutual labels:  webpack
Polymer Skeleton
💀 Skeleton for Polymer 3 app with Webpack, PostCSS and Service Workers ready.
Stars: ✭ 185 (-4.15%)
Mutual labels:  webpack
Polymer Webpack Loader
WebPack Loader for Polymer Web Components
Stars: ✭ 192 (-0.52%)
Mutual labels:  webpack
React Echarts Modules
这个例子给你提供在react中使用echarts的最优方案
Stars: ✭ 185 (-4.15%)
Mutual labels:  webpack
Bedrock
Build a Node web app with user authentication, security, and more in under 10 minutes. Now supports React Hot Loading for super-fast development. 👌
Stars: ✭ 187 (-3.11%)
Mutual labels:  webpack
React Redux Webpack Starter
Learning react
Stars: ✭ 189 (-2.07%)
Mutual labels:  webpack
Vue Cnode
🚀 基于vue3 function-based 构建cnode社区
Stars: ✭ 192 (-0.52%)
Mutual labels:  webpack

avalon-webpack-start

Coverage Status  Coverage Status Coverage Status

Vue 用户请转至:vue-start

React 用户请转至:react-webpack-start

低版本IE 用户请转至:ie-webpack-start

旧版脚手架v2.1.0

介绍

本版本删减了许多模块及功能,让脚手架更轻型,更易扩展,自定义。 本项目使用avalon2作为演示框架,演示如何进入开发。

关于本项目功能

  1. 服务端使用Express。需要注意的是,只有一个目的那就是提供了webpack-dev-middlewarewebpack-hot-middleware(代码热替换)。使用自定义的Express程序替换webpack-dev-server,让它更容易实现universal 渲染和为了不使这个包过于庞大。
  2. 针对不同的loader采用了多线程编译,极大的加快了编译速度。
  3. 使用webpack.DllReferencePlugin提取固定资源,加快编译与打包速度。
  4. 启动tree-shaking
  5. 启动webpack3版本:作用域提升功能
  6. Babel配有transform-runtime让代码更优化。
  7. 支持单页应用和多页应用的混合开发
  8. 自动引入页面的CSS和JS文件。无需手动设置URL
  9. 更改文件,防缓存的hash规则
  10. css的模块化,默认使用postcss + postcss-cssnext,内置处理浏览器前缀。[查看更多](http://cssnext.io/)
  11. 全面支持ES6的最新特性,打包转义为ES5为低版本浏览器提供支持
  12. 快速编译,热更新,自动刷新

程序目录

├── dist                     # 打包资源
├── internals                # 项目配置文件
│   ├── webpack              # webpack配置文件夹
│   └── index.js             # 公共配置文件
├── static                   # 静态资源,直接绕过打包
├── app                      # 程序源文件
└── .cache-loader            # 启动服务后的缓存文件,用于下次快速启动服务

项目启动

环境配置

  • 为了把保证项目正常运行,请自行更新相关环境。
  1. 安装node.js
  2. 安装git

依赖配置

  1. 首先clone项目
$ git clone https://github.com/sayll/avalon-webpack-start.git
$ cd avalon-webpack-start
  1. 下载依赖
  • 请确保你的环境配置完成,然后就可以开始以下步骤
    $ npm install                   # Install project dependencies
    $ npm start                     # Compile and launch
    

如果一切顺利,就能正常打开端口:http://127.0.0.1:3001/

命令说明

开发过程中,你用得最多的会是npm run dev,但是这里还有很多其它的处理:

npm run <script> Explain
start 初始化启动项目(生成Dll文件并启动服务)
dll 生成依赖文件(Dll)
dev 快速启动项目(生成Dll文件下,可加快启动服务)
bundle 打包资源分析仪
build 打包测试环境资源
deploy 打包生产环境资源
  • 第一次运行使用 start,后续调试使用dev

使用手册

  • 项目目录appviews目录内新建文件夹,文件夹名称即为HTML的名称
  • 文件内的index.html, index.js, index.css将会被自动索引,打包到资源中
  • static目录为静态文件目录,可直接通过'/static/*'访问到资源
  • 项目默认关闭eslint,如需开启请到internals/index.js配置。
  • 项目中使用的各类库请直接到internals/index.js中的vendors配置。

更多修改配置请参考internals/index.js

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