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.

33 lines
887 B

  1. const webpack = require('webpack')
  2. const merge = require('webpack-merge')
  3. const ExtractTextPlugin = require('extract-text-webpack-plugin')
  4. const WriteFilePlugin = require('write-file-webpack-plugin')
  5. const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin')
  6. const common = require('./webpack.common.js')
  7. module.exports = merge(common, {
  8. entry: {
  9. client: ['./client/index.js', 'webpack-hot-middleware/client']
  10. },
  11. output: {
  12. pathinfo: true,
  13. publicPath: '/'
  14. },
  15. plugins: [
  16. new SimpleProgressWebpackPlugin({
  17. format: 'compact'
  18. }),
  19. new webpack.DefinePlugin({
  20. 'process.env.NODE_ENV': JSON.stringify('development')
  21. }),
  22. new ExtractTextPlugin({ disable: true }),
  23. new WriteFilePlugin(),
  24. new webpack.HotModuleReplacementPlugin(),
  25. new webpack.WatchIgnorePlugin([
  26. /node_modules/
  27. ])
  28. ],
  29. watch: true
  30. })