Guest User

Untitled

a guest
Jun 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. //This is how we require our modules
  2. //Path is a inbuilt module comes bundled with Node so you do not need to install it
  3. //Path helps us to join two path smartly
  4. const path = require('path');
  5.  
  6. //export syntax ES6
  7. //entry: Take app.js file and output it to my public folder
  8. //output: bundle.js is the file where my output appears after bundling modules
  9. module.exports = {
  10. entry: './src/app.js',
  11. output: {
  12. path: path.join(__dirname , "/public"),
  13. filename: 'bundle.js'
  14. }
  15. }
Add Comment
Please, Sign In to add comment