Skip to content

Instantly share code, notes, and snippets.

@3dln
Last active October 13, 2020 06:15
Show Gist options
  • Save 3dln/4e6135f204a6a559e8b64d9cfa1ec341 to your computer and use it in GitHub Desktop.
Save 3dln/4e6135f204a6a559e8b64d9cfa1ec341 to your computer and use it in GitHub Desktop.
virgool - webpack 5 - tut 02
function component() {
const element = document.createElement('div')
element.innerHTML = _.join(['Hello', 'Webpack'], ' ')
return element
}
document.body.append(component())
const path = require('path');
module.exports = {
entry: './source/app.js',
output: {
filename: 'app.bundle.js',
path: path.resolve(__dirname, 'build'),
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment