A simple TicTacToe app with Golang backend and WebSockets gluing it all together.
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.

32 lines
848 B

  1. const path = require('path');
  2. const MiniCssExtractPlugin = require("mini-css-extract-plugin");
  3. module.exports = {
  4. mode: 'development',
  5. entry: ['./src/index.js'],
  6. output: {
  7. filename: 'bundle.js',
  8. path: path.resolve(__dirname, 'dist'),
  9. library: 'ui'
  10. },
  11. module: {
  12. rules: [
  13. {
  14. test: /\.(sa|sc|c)ss$/,
  15. use: [
  16. MiniCssExtractPlugin.loader,
  17. 'css-loader',
  18. 'sass-loader',
  19. ],
  20. }
  21. ]
  22. },
  23. target: "web",
  24. plugins: [
  25. new MiniCssExtractPlugin({
  26. // Options similar to the same options in webpackOptions.output
  27. // both options are optional
  28. filename: '[name].css',
  29. chunkFilename: '[id].css',
  30. })
  31. ]
  32. };