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.
 
 

16 lines
435 B

  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. module.exports = withPlugins([[withSass], [withImages]], {
  7. webpack(config, { dev }) {
  8. if (dev) {
  9. config.devtool = "cheap-module-source-map";
  10. }
  11. config.resolve.modules.push(path.resolve("./"));
  12. return config;
  13. },
  14. });