Skip to content

stldo/next-stylus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-stylus npm

Add Stylus support to Next.js.

Installation

npm install next-stylus stylus stylus-loader

Usage

/* 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

About

Adds Stylus support to Next.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published