next-stylus
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i next-stylus

Weekly Downloads

219

Version

0.0.2

License

MIT

Unpacked Size

6.86 kB

Total Files

6

Last publish

Collaborators

  • stldo