HarshBarash

webpack.config.js

Feb 26th, 2021
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.94 KB | None | 0 0
  1. // module.exports = {
  2. //     //...
  3. //     devServer: {
  4. //         port: 8000,
  5. //         historyApiFallback: true,
  6. //         hot: true,
  7. //     },
  8. //
  9. //     test: /\.(js|jsx)$/,
  10. //         exclude: /node_modules/,
  11. //     use: {
  12. //     loader: 'babel-loader',
  13. // },
  14. // },
  15. //     {
  16. //         test : /\.(svg)$/,
  17. //         use: [
  18. //             {
  19. //                 loader: "@svgr/webpack"
  20. //             }
  21. //         ]
  22. //     }
  23. // plugins: [
  24. //     new webpack.HotModuleReplacementPlugin(),
  25. //     new webpack.DefinePlugin({
  26. //         'process.env': JSON.stringify(process.env),
  27. //     }),
  28. //     new HtmlWebpackPlugin({
  29. //         template: "./public/index.html",
  30. //     }),
  31. //     new CopyWebpackPlugin({
  32. //         patterns: [
  33. //             { from: './public/favicon.ico', to: './public'}
  34. //         ]
  35. //     }),
  36. // ],{
  37. //     optimization:
  38. //         {
  39. //             minimizer: [new UglifyJsPlugin()]
  40. //         }
  41. // };
  42.  
Advertisement
Add Comment
Please, Sign In to add comment