Skip to content

bugushi/pancake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pancake

A simple React boilerplate

introduce

  • state management with React Context API instead of Redux
  • React Router V4 with dynamic imports
  • use Postcss instead of Sass, support px to vw
  • use css module by css-loader of webpack
  • Webpack 4.0

no local server, develop with charles proxy

compiles to /static folder and watch in development mode

compiles to /dist folder and uglify in production mode

  • Babel
  • Airbnb eslint

Dependencies

name domain description
webpack webpack
webpack-cli webpack offer webpack command in package.json
babel-loader webpack compile js or jsx
css-loader webpack Interprets @import and url() like import/require() and will resolve them. open css module
style-loader webpack Adds CSS to the DOM by injecting a style tag
postcss-loader webpack webpack loader of postcss
file-loader webpack handle assets such as images, contains url-loader
url-loader webpack peerdependency of file-loader
html-webpack-plugin webpack inject bundle js to html file
eslint-loader webpack validate js file while webpack compiles
react-dev-utils webpack contains eslintFormatter, validate js file
clean-webpack-plugin webpack clean dist dir before every build
babel-core babelrc
babel-plugin-syntax-dynamic-import babelrc compile dynamic import which build in webpack
babel-preset-env babelrc equivalent to babel-preset-latest, compilations of es2015, es2016 and es2017
babel-preset-react babel compile react
precss postcss support sass-like syntax
cssnano postcss css minifier
postcss-px-to-viewport postcss px to vw
eslint eslint
babel-eslint eslint used as parser in .eslintrc file
eslint-config-airbnb eslint eslint standard of airbnb
eslint-plugin-import eslint peerdependency of eslint-config-airbnb
eslint-plugin-jsx-a11y eslint peerdependency of eslint-config-airbnb
eslint-plugin-react eslint peerdependency of eslint-config-airbnb

vscode setting

  • css files use sass syntax check

command + , then "files.associations": {"*.css": "scss"}

About

A simple React boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published