Нема описа

1234567891011121314151617181920212223242526272829
  1. var merge = require('webpack-merge')
  2. , path = require('path')
  3. , ExtractTextPlugin = require('extract-text-webpack-plugin')
  4. , HtmlWebpackPlugin = require('html-webpack-plugin')
  5. , baseConfigs = require('./webpack.base')
  6. module.exports = merge(baseConfigs, {
  7. mode: 'development',
  8. devtool: 'source-map',
  9. entry: {
  10. index : './example/index.jsx'
  11. },
  12. output: {
  13. path: path.join(__dirname, './dist'),
  14. filename: '[name].js'
  15. },
  16. plugins: [
  17. new ExtractTextPlugin('index.css'),
  18. new HtmlWebpackPlugin({
  19. template: './example/index.html'
  20. })
  21. ],
  22. devServer: {
  23. stats: { chunks:false },
  24. contentBase: './example',
  25. port: 5998,
  26. hot: true
  27. }
  28. })