next-stylus
v0.0.2
Published
Add Stylus support to Next.js
Downloads
910
Maintainers
Readme
next-stylus
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" />