0.0.2 • Published 2 years ago

next-stylus v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

next-stylus npm

Add Stylus support to Next.js.

Installation

npm install next-stylus stylus stylus-loader

Usage

With next-with-plugins

/* next.config.js */

const withPlugins = require('next-with-plugins')

module.exports = withPlugins({
  plugins: [
    'next-stylus'
  ]
})

Standalone

/* next.config.js */

const withStylus = require('next-stylus')

module.exports = withStylus({
  /* Next.js config options here */
})

TypeScript support

Add a reference to this module in a declaration file.

/* declarations.d.ts */

/// <reference types="next-stylus" />

License

The MIT License