Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

64 Zeilen
1.5 KiB

  1. const withPlugins = require("next-compose-plugins");
  2. const withImages = require("next-images");
  3. const withSass = require("@zeit/next-sass");
  4. const webpack = require("webpack");
  5. const path = require("path");
  6. // const withCSS = require("@zeit/next-css");
  7. require("dotenv").config();
  8. // module.exports = withPlugins([[withSass], [withImages], [withCSS]], {
  9. // // env: {
  10. // // API_URL: process.env.API_URL,
  11. // // },
  12. // trailingSlash: true,
  13. // webpack(config, { dev }) {
  14. // if (dev) {
  15. // config.devtool = "cheap-module-source-map";
  16. // }
  17. // config.resolve.modules.push(path.resolve("./"));
  18. // return config;
  19. // },
  20. // generateEtags: false,
  21. // });
  22. module.exports = withPlugins([[withSass], [withImages]], {
  23. trailingSlash: true,
  24. generateEtags: false,
  25. webpack(config, { dev }) {
  26. if (dev) {
  27. config.devtool = "cheap-module-source-map";
  28. }
  29. config.resolve.modules.push(path.resolve("./"));
  30. return config;
  31. },
  32. });
  33. // module.exports = withSass({
  34. // cssModules: true,
  35. // cssLoaderOptions: {
  36. // importLoaders: 1,
  37. // localIdentName: "[local]_[hash:base64:5]",
  38. // url: false,
  39. // },
  40. // trailingSlash: true,
  41. // webpack(config, { dev }) {
  42. // if (dev) {
  43. // config.devtool = "cheap-module-source-map";
  44. // }
  45. // config.resolve.modules.push(path.resolve("./"));
  46. // return config;
  47. // },
  48. // ...withImages({
  49. // webpack(config, { dev }) {
  50. // if (dev) {
  51. // config.devtool = "cheap-module-source-map";
  52. // }
  53. // config.resolve.modules.push(path.resolve("./"));
  54. // return config;
  55. // },
  56. // }),
  57. // generateEtags: false,
  58. // });