All Projects → BiYuqi → Webpack Seed

BiYuqi / Webpack Seed

Licence: mit
🚀 A Multi-Page Application base on webpack and babel. webpack搭建基于ES6,支持模板的多页面项目

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Webpack Seed

Webpack Boilerplate
A minimal webpack 5 boilerplate with only Babel, SASS and lodash (optional) on board
Stars: ✭ 404 (+257.52%)
Mutual labels:  webpack, webpack4, babel, sass
React Bootstrap Webpack Starter
ReactJS 16.4 + new React Context API +react Router 4 + webpack 4 + babel 7+ hot Reload + Bootstrap 4 + styled-components
Stars: ✭ 103 (-8.85%)
Mutual labels:  webpack, webpack4, babel, axios
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: ✭ 102 (-9.73%)
Mutual labels:  webpack, webpack4, babel, sass
Tris Webpack Boilerplate
A Webpack boilerplate for static websites that has all the necessary modern tools and optimizations built-in. Score a perfect 10/10 on performance.
Stars: ✭ 1,016 (+799.12%)
Mutual labels:  webpack, webpack4, babel, sass
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-76.99%)
Mutual labels:  webpack, babel, sass
Wordless
All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
Stars: ✭ 1,374 (+1115.93%)
Mutual labels:  webpack, babel, sass
Online Bling
Stars: ✭ 9 (-92.04%)
Mutual labels:  webpack, babel, sass
Budgeting
Budgeting - React + Redux + Webpack (tree shaking) Sample App
Stars: ✭ 971 (+759.29%)
Mutual labels:  webpack, babel, sass
Slinky
A light-weight, responsive, mobile-like navigation menu plugin
Stars: ✭ 649 (+474.34%)
Mutual labels:  webpack, babel, sass
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-71.68%)
Mutual labels:  webpack, babel, axios
Html Sass Babel Webpack Boilerplate
Webpack 4 + Babel + ES6 + SASS + HTML Modules + Livereload
Stars: ✭ 35 (-69.03%)
Mutual labels:  webpack, webpack4, sass
Minimal React Webpack Babel Setup
The minimal React, Webpack, Babel Setup. You want to get beyond create-react-app?
Stars: ✭ 777 (+587.61%)
Mutual labels:  webpack, webpack4, babel
Vue Music Player
🎵Vue.js写一个音乐播放器+📖One(一个).A music player + One by Vue.js
Stars: ✭ 729 (+545.13%)
Mutual labels:  webpack, axios, sass
Vue Admin Webapp
this is a admin project
Stars: ✭ 673 (+495.58%)
Mutual labels:  webpack, webpack4, axios
Vue Spa
vue-spa : vue + vue-router + axios + vuex + vux 快速成型移动端项目,直接使用。欢迎star
Stars: ✭ 46 (-59.29%)
Mutual labels:  webpack, axios, sass
React Redux Antdesign Webpack Starter
react + redux + ant design + react-router 4 + webpack 4 starter
Stars: ✭ 44 (-61.06%)
Mutual labels:  webpack, webpack4, sass
Vue
Stars: ✭ 65 (-42.48%)
Mutual labels:  webpack, babel, sass
Cordova Template Framework7 Vue Webpack
Framework7 - Vue - Webpack Cordova Template with Webpack Dev Server and Hot Module Replacement
Stars: ✭ 630 (+457.52%)
Mutual labels:  webpack, webpack4, babel
React Webpack Typescript Starter
Minimal starter with hot module replacement (HMR) for rapid development.
Stars: ✭ 632 (+459.29%)
Mutual labels:  webpack, babel, sass
Template.js
A javascript template engine, simple, easy & extras, support webpack, rollup, parcel, browserify, fis and gulp
Stars: ✭ 1,201 (+962.83%)
Mutual labels:  webpack, handlebars, ejs

Webpack

Webpack babel License

前言

开箱即用的多页面模板, 基于 webpack4 babel7 开发可复用的现代化网站, 解决非 SPA 应用, html 复用, 模块化开发编译等问题.

如果感兴趣该项目, 请点个 star

及时关注项目更新, 请点个 watch

项目 bug, 请提 issue

新版本 2.x

  • [x] 使用webpack-chain进行构建程序
  • [x] 重构整体页面配置, 包括模板的创建, 静态第三方资源的引入方式
  • [x] 全新的变量管理方式, 类 vue-cli 脚手架的配置, 自动读取根目录的环境变量文件.env[mode]
  • [x] 支持在ws.config.js进行全局的配置打包等配置, 具体可参考 vue.config.js 配置方式

特性

  • 支持前后端分离开发
  • 配置完整的打包方案
  • 支持本地开发热更新
  • EJS 模板编译
  • 图片处理压缩
  • 内置 Sass 开发环境
  • 集成代码风格校验 Eslint
  • 内置字体图标库 500+, 开箱即用
  • 支持 ES6 语法,编译生成生产代码
  • 支持开发(生产)环境变量注入(基于.env.[mode]文件,类似于 Vue-CLI 脚手架提供的方案)
  • 通用的构建方式, 基本是开箱即用. 同时支持通过ws.config.js进行灵活的构建配置
  • ...

注:本项目引入了 jquery, bootstrap,该文件配置可自动加载第三方脚本作为链接使用(script 标签的形式引入), 如果需要,在 src/common/lib/index.js 配置即可

项目结构

webpack-seed
├── dist # 输出目录
├── bin # 创建页面命令
├── build # webpack构建目录
├── src # 项目主目录
├── .editorconfig
├── .env.github # 环境变量配置
├── .env.prod # 环境变量配置
├── .env.staging # 环境变量配置
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── .npmrc # npm源
├── .postcssrc.js
├── .prettierignore
├── .prettierrc.js
├── .travis.yml # CI当前项目demo部署
├── favicon.ico
├── LICENSE
├── README.md
├── babel.config.js # babel配置
├── package.json
├── ws.config.js # 可通过该配置改webpack等配置
└── yarn.lock

输出

dist
├── css
├── favicon.ico
├── fonts
├── html
├── image
├── index.html
├── js
└── libs

使用

下载使用

git clone https://github.com/BiYuqi/webpack-seed.git

cd webpack-seed

yarn install

本地开发(dev)

yarn run serve

打包(build)

yarn run build

配置文件

# 具体配置和vue.config.js一致
ws.config.js

环境变量

# 具体配置和vue-cli配置方式一致
.env[mode]

TODO

  • [ ] 测试框架默认 Jest
  • [ ] 编写创建项目的脚手架, eslint, jest, 等配置可选
  • [ ] 优化 webpack 配置流程, 尽量黑盒化, 约定大于配置
  • [ ] 文档补充
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].