webpack.dev.js 347 B

12345678910111213141516
  1. const { merge } = require("webpack-merge");
  2. const common = require("./webpack.common.js");
  3. const port = 3001;
  4. module.exports = merge(common, {
  5. mode: "development",
  6. devtool: "eval-cheap-source-map",
  7. devServer: {
  8. host: "localhost",
  9. compress: true,
  10. port: port,
  11. historyApiFallback: true,
  12. open: true,
  13. hot: true,
  14. },
  15. });