Last active
April 9, 2021 09:01
-
-
Save myogeshchavan97/d0a99bfef16ac3072104237ee3e55aed to your computer and use it in GitHub Desktop.
Final webpack file
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'); | |
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