Skip to content

Instantly share code, notes, and snippets.

Created April 11, 2018 12:35
What would you like to do?
const path = require('path');
// Paths involved in the creating the config
const PATHS = {
src: path.resolve(__dirname, 'app/index.js'),
dest: path.resolve(__dirname, 'build')
// Webpack config object
const config = {};
// Entry point of the application to be compiled
config.entry = PATHS.src;
// Output of the application build
config.output = {
path: PATHS.dest,
filename: 'output.bundle.js'
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment