Skip to content

Instantly share code, notes, and snippets.

@prakash122
Created April 11, 2018 12:35
Embed
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