Skip to content

Instantly share code, notes, and snippets.

@myogeshchavan97
Last active April 9, 2021 09:01
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 myogeshchavan97/d0a99bfef16ac3072104237ee3e55aed to your computer and use it in GitHub Desktop.
Save myogeshchavan97/d0a99bfef16ac3072104237ee3e55aed to your computer and use it in GitHub Desktop.
Final webpack file
const path = require('path');
module.exports = {
entry: './src/app.js',
output: {
filename: 'bundle.js',
path: path.join(__dirname, 'public')
},
module: {
rules: [{
loader: 'babel-loader',
test: /\.js$/,
exclude: /node_modules/
}]
},
mode: 'development',
devServer: {
contentBase: path.join(__dirname, 'public')
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment