Skip to content

Instantly share code, notes, and snippets.

View SouravJaiswal's full-sized avatar

Sourav Jaiswal SouravJaiswal

  • Cisco
  • Bangalore, India
View GitHub Profile
@SouravJaiswal
SouravJaiswal / next.config.js
Created August 16, 2020 12:43 — forked from OlehDutchenko/next.config.js
Example for the next.config.js to enable typescript errors check in dev mode
// -----------------------------------------------------------------------------
// Deps
// -----------------------------------------------------------------------------
const fromCWD = require('from-cwd');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');
// -----------------------------------------------------------------------------