Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. const merge = require('webpack-merge');
  2. const common = require('./webpack.common.js');
  3. const HtmlWebpackPlugin = require('html-webpack-plugin');
  4.  
  5. module.exports = merge(common, {
  6. mode: 'development',
  7. optimization: {
  8. usedExports: true
  9. },
  10. output: {
  11. publicPath: '/',
  12. filename: "[name]-[hash].js",
  13. chunkFilename: "[name]-[hash].js"
  14. },
  15. devServer: {
  16. compress: true,
  17. stats: 'errors-only',
  18. open: true,
  19. historyApiFallback: true,
  20. },
  21. plugins: [
  22. new HtmlWebpackPlugin({ template: './src/index.html' }),
  23. ]
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement