Playing around with making a hexagon grid on a Icosahedron

webpack.config.js 596B

123456789101112131415161718192021222324252627282930313233
  1. const path = require("path");
  2. const HtmlWebpackPlugin = require('html-webpack-plugin')
  3. module.exports = {
  4. entry: "./src/index.js",
  5. output: {
  6. filename: "main.js",
  7. path: path.resolve(__dirname, "dist")
  8. },
  9. module: {
  10. rules: [
  11. {
  12. test: /\.(png|jpg|gif)$/,
  13. use: [
  14. {
  15. loader: 'file-loader',
  16. options: {},
  17. },
  18. ],
  19. },
  20. ],
  21. },
  22. plugins: [
  23. new HtmlWebpackPlugin({ template: "src/index.html" })
  24. ],
  25. devtool: "source-map",
  26. devServer: {
  27. watchOptions: {
  28. ignored: /node_modules/
  29. }
  30. }
  31. };