This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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