Guest User

Untitled

a guest
May 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. const path = require('path');
  2.  
  3. module.exports = {
  4. module: {
  5. rules: [
  6. {
  7. test: /\.js$/,
  8. exclude: /node_modules/,
  9. loader: 'babel-loader',
  10.  
  11. options: {
  12. presets: ['env']
  13. }
  14. }
  15. ]
  16. },
  17.  
  18. entry: {
  19. //there can be multiple entry files
  20. file1: './src/js/app.js'
  21. },
  22.  
  23. output: {
  24. //publicPath: "public/dist",
  25. filename: 'final.bundle.js',
  26. path: path.resolve(__dirname, 'dist')
  27. },
  28.  
  29. devServer: {
  30. contentBase: path.join(__dirname, "dist/"),
  31. port: 9000
  32. },
  33.  
  34. mode: 'development'
  35. };
Add Comment
Please, Sign In to add comment