Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. /* eslint-disable */
  2. const { parsed: localEnv } = require("dotenv").config();
  3. const webpack = require("webpack");
  4. module.exports = {
  5. webpack(config, { dev }) {
  6. if (dev) {
  7. config.module.rules.push({
  8. test: /\.js$/,
  9. loader: "eslint-loader",
  10. exclude: ["/node_modules/", "/.next/", "/out/"],
  11. enforce: "pre",
  12. options: {
  13. emitWarning: true
  14. }
  15. });
  16. }
  17.  
  18. config.module.rules.push({
  19. test: /\.svg$/,
  20. use: ["@svgr/webpack"]
  21. });
  22.  
  23. return config;
  24. }
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement