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.
 
 

18 lines
546 B

  1. const withPlugins = require("next-compose-plugins");
  2. const withImages = require("next-images");
  3. const withSass = require("@zeit/next-sass");
  4. const withCss = require("@zeit/next-css");
  5. const withLess = require('@zeit/next-less');
  6. const webpack = require("webpack");
  7. const path = require("path");
  8. module.exports = withPlugins([[withSass], [withImages], [withCss], [withLess]], {
  9. webpack(config, { dev }) {
  10. if (dev) {
  11. config.devtool = "cheap-module-source-map";
  12. }
  13. config.resolve.modules.push(path.resolve("./"));
  14. return config;
  15. },
  16. });