Skip to content

Instantly share code, notes, and snippets.

@lucascardial
Created September 30, 2019 15:41
Show Gist options
  • Save lucascardial/b39619f08ac53f89a2b36645750f8cd1 to your computer and use it in GitHub Desktop.
Save lucascardial/b39619f08ac53f89a2b36645750f8cd1 to your computer and use it in GitHub Desktop.
/* eslint-disable */
const { parsed: localEnv } = require("dotenv").config();
const webpack = require("webpack");
module.exports = {
webpack(config, { dev }) {
if (dev) {
config.module.rules.push({
test: /\.js$/,
loader: "eslint-loader",
exclude: ["/node_modules/", "/.next/", "/out/"],
enforce: "pre",
options: {
emitWarning: true
}
});
}
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"]
});
return config;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment