Skip to content

incodeit/webpack2-express-heroku-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack2/Express/Heroku Starter

This is a very basic sample app to get you started using Webpack 2, Express and is setup to deploy to Heroku.

Features:

Note: this does not use React, Angular, or any other front-end framework. Pick your own when you're ready.

Setup

Deploy

First, you'll need a heroku account.

  • In Heroku, create a new app.
  • Add a new buildpack, select heroku/nodejs. This should set you up to automatically run npm install which is what you'll need to get up and running.
  • Follow the instructions to link to your repository.
  • git push heroku master - Assuming you've set everything up correctly, this will deploy your app, and run the postinstall script in package.json.

Credits

Thanks to christianalfoni for the excellent Webpack 1 tutorial and example repo. I got started there and then built this one once I realized I wanted to play with Webpack v2.

Notes

The Heroku part of this is really easy to change for your own build process. Dig into the npm scripts, and take a look at the production webpack config.

About

Starter app using Webpack 2, Express, setup to deploy to Heroku.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.1%
  • HTML 10.3%
  • CSS 8.6%