next-coffeescript

1.3.0 • Public • Published

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
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i next-coffeescript

Weekly Downloads

2

Version

1.3.0

License

MIT

Unpacked Size

3.18 kB

Total Files

4

Last publish

Collaborators

  • alin23