GithubHelp home page GithubHelp logo

danielsan22 / webpack-starter-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robertguss/webpack-starter-kit

0.0 2.0 0.0 85 KB

Webpack 4 stater kit with SCSS, PostCSS, Babel & ESLint

License: MIT License

JavaScript 27.21% CSS 72.79%

webpack-starter-kit's Introduction

Webpack Starter Kit

An opinionated starter kit using Webpack 4, SCSS, PostCSS, Browsersync, ESLint (airbnb) & Babel.

Out of the box, this Webpack starter kit comes with several tools and opinionated choices for front-end development projects.

Installation & Use

  # Git Clone this repo, where 'my-project' is the name of your project
  git clone [email protected]:robertguss/Webpack-Starter-Kit.git my-project

  # cd into the repo's diectory
  cd my-project

  # install NPM modules
  yarn

  # start development server
  yarn start

  #build for production
  yarn build

SCSS

Scss is the css pre-processor of choice for this kit.

Inside of scss/libary/_breakpoint.scss are several mixing for handling responsive media queries with a mobile first approach. The variables for these breakpoints are set inside of scss/_variables.scss.

PostCSS

PostCSS is included with 3 plugins by default:

  • Autoprefixer
  • CSS Nano
  • Rucksack - Note: Rucksack is necessary if you plan to take advantage of the scss/libary/_typography.scss. This provides reponsive typography out of the box for you. Simply go to Modular Scale to create the typographic scale of your choosing and add the values to the variables in the file. Granted, this is a very opinionated way of handling responsive typography, so please customize to your liking. If you have a better method, please submit a pull request ๐Ÿ˜Ž

To add additional plugins, simply yarn add <post css plugin name here> -D then add the plugin to postcss.config.js. In this config you will note there are 2 module.exports one is for production:

  yarn build

and the other is for development:

yarn start

add your postcss plugin to the correct one accordingly.

Browsersync

We are using Browsersync for live reload and responsive design/development. The config for browsersync can be found in webpack.dev.js around line 63.

ES Lint

This kit is using Airbnb's ES Lint Configs & Style Guide.

Babel

Write future JavaScript today!

webpack-starter-kit's People

Contributors

robertguss avatar

Watchers

James Cloos avatar Daniel Sanchez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.