Last active
October 13, 2020 06:15
-
-
Save 3dln/4e6135f204a6a559e8b64d9cfa1ec341 to your computer and use it in GitHub Desktop.
virgool - webpack 5 - tut 02
This file contains hidden or 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
function component() { | |
const element = document.createElement('div') | |
element.innerHTML = _.join(['Hello', 'Webpack'], ' ') | |
return element | |
} | |
document.body.append(component()) |
This file contains hidden or 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: './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