fork download
  1. const HtmlWebPackPlugin = require("html-webpack-plugin");
  2.  
  3. const htmlWebpackPlugin = new HtmlWebPackPlugin({
  4. template: "./src/index.html",
  5. filename: "./index.html"
  6. });
  7.  
  8. module.exports = {
  9. module: {
  10. rules: [
  11. {
  12. test: /\.js$/,
  13. exclude: /node_modules/,
  14. use: {
  15. loader: "babel-loader"
  16. }
  17. },
  18. {
  19. test: /\.css$/,
  20. use: [
  21. {
  22. loader: "style-loader"
  23. },
  24. {
  25. loader: "css-loader",
  26. options: {
  27. modules: true,
  28. importLoaders: 1,
  29. localIdentName: "[name]_[local]_[hash:base64]",
  30. sourceMap: true,
  31. minimize: true
  32. }
  33. }
  34. ]
  35. }
  36. ]
  37. },
  38. plugins: [htmlWebpackPlugin]
  39. };
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty