Skip to content

Plain webpack 4 boilerplate with Babel, SASS and lodash (optional) on board

License

Notifications You must be signed in to change notification settings

isaacalves/webpack-boilerplate

 
 

Repository files navigation

Webpack 4 Boilerplate

Dependency Status devDependency Status

Plain webpack 4 boilerplate with Babel, SASS and lodash on board

Requirements

You only need node.js pre-installed and you’re good to go.

If you don’t want to work with lodash, just remove it from the node packages and the webpack config.

Download

Download in current directory

$ curl -L -o master.zip https://github.com/cvgellhorn/webpack-boilerplate/archive/master.zip && unzip master.zip && rm master.zip && mv ./webpack-boilerplate-master/{.,}* ./ && rm -r ./webpack-boilerplate-master

Setup

Install dependencies

$ npm install

Development

Run the local webpack-dev-server with livereload and autocompile on http://localhost:8080/

$ npm run dev

Deployment

Build the current application

$ npm run build

If you're not familiar with webpack, the webpack-dev-server will serve the static files in your build folder and watch your source files for changes. When changes are made the bundle will be recompiled. This modified bundle is served from memory at the relative path specified in publicPath.

About

Plain webpack 4 boilerplate with Babel, SASS and lodash (optional) on board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.4%
  • CSS 26.8%
  • HTML 20.8%