Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This is how we require our modules
- //Path is a inbuilt module comes bundled with Node so you do not need to install it
- //Path helps us to join two path smartly
- const path = require('path');
- //export syntax ES6
- //entry: Take app.js file and output it to my public folder
- //output: bundle.js is the file where my output appears after bundling modules
- module.exports = {
- entry: './src/app.js',
- output: {
- path: path.join(__dirname , "/public"),
- filename: 'bundle.js'
- }
- }
Add Comment
Please, Sign In to add comment