1.0.0 • Published 7 years ago
next-with-typescript v1.0.0
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
}
})
1.0.0
7 years ago
0.0.1-beta1
7 years ago