Created
September 30, 2019 15:41
-
-
Save lucascardial/b39619f08ac53f89a2b36645750f8cd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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