1.0.0 • Published 7 years ago

next-with-typescript v1.0.0

Weekly downloads
25
License
MIT
Repository
-
Last release
7 years ago

Next.js + Typescript

Use Typescript with Next.js

This plugin implements ts-loader with Next.js.

Installation

yarn add ts-loader next-with-typescript

Usage

Create a next.config.js in your project

// next.config.js
const withTypescript = require('next-with-typescript')
module.exports = withTypescript()

Optionally you can add your custom Next.js configuration as parameter

// next.config.js
const withTypescript = require('@zeit/next-typescript')
module.exports = withTypescript({
  webpack(config, options) {
    return config
  }
})