Advertisement
Guest User

webpack conf issue

a guest
Nov 16th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. {
  2. output: {
  3. filename: '[name].[ hash].js',
  4. chunkFilename: '[name].[hash].js',
  5. path: '/Users/bmatei/Workspace/personal/personify-ui/build/',
  6. publicPath: '/'
  7. },
  8. module: {
  9. rules: [
  10. // loaders
  11. ]
  12. },
  13. resolve: {
  14. extensions: [ '.ts', '.tsx', '.js', '.jsx' ],
  15. alias: {}, // see the object a little bit up in the post
  16. },
  17. plugins: [
  18. // DefinePlugin
  19. // CleanWebpackPlugin
  20. // HtmlWebpackPlugin
  21. // HotModuleReplacementPlugin
  22. // NamedModulesPlugin
  23. ],
  24. stats: {
  25. // irrelevant
  26. },
  27. devtool: 'inline-source-map',
  28. target: 'web',
  29. entry: [
  30. 'react-hot-loader/patch',
  31. 'webpack-dev-server/client?http: //localhost:9090',
  32. 'webpack/hot/only-dev-server',
  33. '/Users/user/Workspace/prj-name/app/index.tsx'
  34. ],
  35. devServer: {
  36. hot: true,
  37. port: 9090,
  38. stats: {
  39. // irrelevant
  40. },
  41. historyApiFallback: true,
  42. proxy: {
  43. // irrelevant
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement