All Projects → wochap → webpack-boilerplate

wochap / webpack-boilerplate

Licence: other
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to webpack-boilerplate

webpack-typescript-react
Webpack 5 boilerplate with support of most common loaders and modules (see tags and description)
Stars: ✭ 185 (+460.61%)
Mutual labels:  postcss, webpack-boilerplate, prettier, webpack-dev-server
Webpack Cdn Plugin
A webpack plugin that use externals of CDN urls for production and local node_modules for development
Stars: ✭ 306 (+827.27%)
Mutual labels:  webpack2, webpack3, webpack4
Easy Vue
Learn vueJS Easily 👻
Stars: ✭ 896 (+2615.15%)
Mutual labels:  webpack2, webpack3, webpack4
React Ssr Setup
React Starter Project with Webpack 4, Babel 7, TypeScript, CSS Modules, Server Side Rendering, i18n and some more niceties
Stars: ✭ 678 (+1954.55%)
Mutual labels:  postcss, hmr, prettier
React Starter Kit
React, Redux, Webpack, Material UI, Boostrap 4, Code Splitting, HMR
Stars: ✭ 229 (+593.94%)
Mutual labels:  hmr, prettier, webpack4
craft3-webpack5-tailwind2-boilerplate
A real-world boilerplate for Craft CMS 3 projects that leverages Wepback 5, Tailwind 2, PostCSS 8, and has a hot-reload dev environment. Now with dynamic imports, asynchronous chunk loading, and legacy vs modern browser support!
Stars: ✭ 44 (+33.33%)
Mutual labels:  postcss, hmr, webpack-dev-server
dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (+84.85%)
Mutual labels:  postcss, prettier, webpack-dev-server
React Director Admin Template
ReactJS version of Director Responsive Admin Template Free
Stars: ✭ 304 (+821.21%)
Mutual labels:  postcss, webpack3
React Redux Boilerplate
Awesome React Redux Workflow Boilerplate with Webpack 4
Stars: ✭ 307 (+830.3%)
Mutual labels:  postcss, webpack4
Postcss Variables Loader
Share variables between CSS and JS with Webpack + HMR
Stars: ✭ 18 (-45.45%)
Mutual labels:  postcss, hmr
React Boilerplate
This project is deprecated. Please use CRA instead.
Stars: ✭ 88 (+166.67%)
Mutual labels:  postcss, prettier
edgestack
[UNMAINTAINED] A Universal React Stack with deeply integrated localization Support, semi-automatic route-based code splitting, Hot Module Reloading (HMR), Redux, Apollo GraphQL and more...
Stars: ✭ 77 (+133.33%)
Mutual labels:  postcss, webpack2
polymerx-cli
⚡ Unlock the power of Polymer 3, Web Components and modern web tools.
Stars: ✭ 30 (-9.09%)
Mutual labels:  postcss, webpack4
quantum-blox
Quantum blox - modular UI boilerplate in react
Stars: ✭ 12 (-63.64%)
Mutual labels:  postcss, webpack2
React Cool Starter
😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (+3181.82%)
Mutual labels:  postcss, prettier
eruda-webpack-plugin
A webpack plugin of eruda to help you develop mobile app
Stars: ✭ 56 (+69.7%)
Mutual labels:  webpack3, webpack4
antd-color-replacer
适用于 webpack 环境下 的 主题切换插件
Stars: ✭ 22 (-33.33%)
Mutual labels:  postcss, webpack4
React Base
atSistemas React/Redux Isomorphic Platform
Stars: ✭ 82 (+148.48%)
Mutual labels:  postcss, webpack3
React Redux Graphql Apollo Bootstrap Webpack Starter
react js + redux + graphQL + Apollo + react router + hot reload + devTools + bootstrap + webpack starter
Stars: ✭ 127 (+284.85%)
Mutual labels:  postcss, webpack3
React Typescript Webpack2 Cssmodules Postcss
Simple Starter Template for React, TypeScript, postCSS, ITCSS, CSS-Modules, Webpack and Live Reloading (React Hot Loader 3)
Stars: ✭ 117 (+254.55%)
Mutual labels:  postcss, webpack2

Webpack boilerplate

A highly scalable and simple webpack boilerplate for client apps.

Older versions of this boilerplate with webpack v1, webpack v2, webpack v3

Quick start

Create a .env file. Then:

# install dependencies
$ yarn

# serve with hot reload
$ yarn build:watch
# or
$ yarn dev

# serve with hot reload and inspect webpack dev server
# https://nodejs.org/api/debugger.html#debugger_v8_inspector_integration_for_node_js
$ yarn dev:inspect

# build for production with minification
$ yarn build

# run tests
$ yarn test

# run tests and watch
$ yarn test:watch

# run test coverage report
$ yarn test:coverage

NOTE: For disable source map or bundle analyzer report (both on production only) and browser sync (on development), just remove it from .env file.

Documentation

Features

  • HMR
  • CSS < PostCSS < SCSS
  • JS < ES2015 < ESLint < Prettier
  • Browser Sync
  • Images and fonts well configured.
  • Long term caching.
  • Tree shaking.
  • Tests with Jest.

Boilerplate structure

.
├── .editorconfig             # editor config
├── .env.defaults             # env default variables
├── .env.schema               # env variables schema (for validation)
├── .eslintignore             # eslint ignore config
├── .eslintrc                 # eslint config
├── .gitignore                # git ignore config
├── .nvmrc                    # nvm config
├── .prettierrc               # prettier config
├── babel.config.js           # babel config
├── package.json              # https://docs.npmjs.com/files/package.json
├── postcss.config.js         # postcss config
├── README.md                 # this file
├── webpack.config.js         # webpack config
├── yarn.lock                 # https://yarnpkg.com/en/docs/yarn-lock
├── coverage/                 # jest coverage output
├── dist/                     # webpack build output
├── test/                     # jest config
├── lib/                      # future external packages
├── public/                   # files that will be copied to dist
└── src/                      # source code
    ├── app/
    │   └── main.js           # app entry file
    ├── styles/
    │   └── main.scss         # main scss file
    └── index.html            # template used by html-webpack-plugin

Troubleshooting

  • Module build failed: Error: ENOENT: no such file or directory, scandir

Rebuild node-sass

$ npm rebuild node-sass

TODO

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