Guest User

Untitled

a guest
May 25th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var path = require("path");
  2.  
  3. module.exports = {
  4. module: {
  5. rules: [
  6. {
  7. //only the js and jsx will be considered
  8. test: /\.js$/,
  9. exclude: /node_modules/,
  10. loader: 'babel-loader',
  11.  
  12. options: {
  13. presets: ['env']
  14. }
  15. }
  16. ]
  17. },
  18.  
  19. plugins: [new UglifyJSPlugin()],
  20.  
  21. entry: {
  22. app: './src/app.js'
  23. },
  24.  
  25. output: {
  26. filename: 'final.bundle.js',
  27. path: path.resolve(__dirname, 'dist')
  28. },
  29.  
  30. mode: 'development'
  31. };
Add Comment
Please, Sign In to add comment