1.3.0 • Published 6 years ago

next-coffeescript v1.3.0

Weekly downloads
25
License
MIT
Repository
github
Last release
6 years ago

Next.js + Coffeescript 2

Use Coffeescript with Next.js

This plugin uses coffee-loader.

Notice

For the moment, only the canary version of Next.js supports pages with different extensions. Until this feature is released into the stable version, do this:

npm install --save next@canary

or

yarn add next@canary

Installation

npm install --save next-coffeescript coffeescript

or

yarn add next-coffeescript coffeescript

Usage

Create a next.config.js in your project

// next.config.js
const withCoffeescript = require('next-coffeescript')
module.exports = withCoffeescript()

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

// next.config.js
const withCoffeescript = require('next-coffeescript')
module.exports = withCoffeescript({
  webpack(config, options) {
    return config
  },
  coffeescriptLoaderOptions: {
    literate: true
  }
})
1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago