You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webpack-hot-dev-server.config.js 818 B

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. var path = require('path')
  2. module.exports = require("./make-webpack-config")({
  3. _special: {
  4. loaders: {
  5. 'jsx': [ "react-hot-loader", "babel" ]
  6. },
  7. separateStylesheets: false,
  8. },
  9. devtool: "eval",
  10. entry: {
  11. 'swagger-ui-bundle': [
  12. 'webpack/hot/dev-server',
  13. 'babel-polyfill',
  14. './src/core/index.js',
  15. ],
  16. 'swagger-ui-standalone-preset': [
  17. 'webpack/hot/dev-server',
  18. './src/standalone/index.js',
  19. ]
  20. },
  21. output: {
  22. pathinfo: true,
  23. debug: true,
  24. filename: '[name].js',
  25. library: "[name]",
  26. libraryTarget: "umd",
  27. chunkFilename: "[id].js"
  28. },
  29. devServer: {
  30. port: 3200,
  31. path: path.join(__dirname, 'dev-helpers'),
  32. publicPath: "/",
  33. noInfo: true,
  34. colors: true,
  35. hot: true,
  36. stats: {
  37. colors: true
  38. },
  39. },
  40. })