Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

30 wiersze
933 B

  1. const withPlugins = require("next-compose-plugins");
  2. const optimizedImages = require("next-optimized-images");
  3. const nextConfiguration = {
  4. target: "serverless", //will output independent pages that don't require a monolithic server. It's only compatible with next start or Serverless deployment platforms (like ZEIT Now) — you cannot use the custom server API.
  5. future: {
  6. webpack5: true,
  7. },
  8. webpack: function (config, { dev }) {
  9. if (dev) {
  10. config.devtool = "cheap-module-source-map";
  11. }
  12. // config.resolve.modules.push(path.resolve("./"));
  13. return config;
  14. },
  15. };
  16. module.exports = withPlugins([optimizedImages], nextConfiguration);
  17. // module.exports = {
  18. // future: {
  19. // webpack5: true,
  20. // },
  21. // webpack: function (config, options) {
  22. // // console.log(options.webpack.version); // 5.18.0
  23. // // config.experiments = {};
  24. // return config;
  25. // },
  26. // ...withPlugins([optimizedImages], nextConfiguration)
  27. // };