Skip to content

Instantly share code, notes, and snippets.

@WesleySmits
Created October 10, 2021 08:54
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 WesleySmits/802099ee0d13b6937c3cb8624b82a4e1 to your computer and use it in GitHub Desktop.
Save WesleySmits/802099ee0d13b6937c3cb8624b82a4e1 to your computer and use it in GitHub Desktop.
TS start: Basic webpack.config.js
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