-
-
Save WesleySmits/802099ee0d13b6937c3cb8624b82a4e1 to your computer and use it in GitHub Desktop.
TS start: Basic webpack.config.js
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 = { | |
mode: 'development', | |
context: path.join(__dirname, 'app'), | |
entry: [ | |
'./js/app.js', | |
], | |
output: { | |
path: path.join(__dirname, 'public'), | |
filename: 'bundle.js', | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
use: [ | |
'babel-loader', | |
], | |
}, | |
], | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment