webpack.dev.js 393 B

1234567891011121314151617
  1. const common = require('./webpack.common.js');
  2. const merge = require('webpack-merge');
  3. const path = require('path');
  4. module.exports = merge(common, {
  5. mode: 'development',
  6. devtool: 'inline-source-map',
  7. devServer: {
  8. contentBase: [
  9. path.join(__dirname),
  10. path.join(__dirname, 'public'),
  11. path.join(__dirname, 'src'),
  12. ],
  13. compress: true,
  14. port: 9966,
  15. },
  16. });