Skip to content

Instantly share code, notes, and snippets.

@Hebilicious
Hebilicious / node.webpack.config.js
Created January 19, 2018 01:14
Webpack & Node 2018 Starter Config
/**
* Inspired by https://jlongster.com/Backend-Apps-with-Webpack--Part-I
*/
const webpack = require('webpack');
const path = require('path');
const fs = require('fs');
//Use nodemon to livereload when using webpack --watch.
const NodemonPlugin = require('nodemon-webpack-plugin');
//Ignore node externals when bundling
const nodeExternals = require('webpack-node-externals');