Skip to content

Instantly share code, notes, and snippets.

@prakash122
Created April 11, 2018 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prakash122/2e41e7049e186806aff321f8cad56e9d to your computer and use it in GitHub Desktop.
Save prakash122/2e41e7049e186806aff321f8cad56e9d to your computer and use it in GitHub Desktop.
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