New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

next-linaria

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-linaria

Linaria support for Next.js applications

latest
Source
npmnpm
Version
0.11.0
Version published
Weekly downloads
474
23.76%
Maintainers
1
Weekly downloads
 
Created
Source

Next.js + Linaria

Adds Linaria to built-in CSS support in Next.js.

This module is intended to be used with Next.js built-in CSS support (https://nextjs.org/docs/basic-features/built-in-css-support) and probably will not work with custom CSS handling.

Version 0.11 of this package requires Next.js 9.5.4 or above.

For Next.js 9.2-9.5.3 use 0.10.

Installation

npm install --save next-linaria linaria

or

yarn add next-linaria linaria

Usage

Create a next.config.js in your project

// next.config.js
const withLinaria = require('next-linaria');
module.exports = withLinaria({
  /* config options here */
});

Linaria options

// next.config.js
const withLinaria = require('next-linaria');
module.exports = withLinaria({
  linaria: {
    /* linaria options here */
  },
});

Configuring Next.js

Optionally you can add your custom Next.js configuration as parameter

// next.config.js
const withLinaria = require('next-linaria');
module.exports = withLinaria({
  webpack(config, options) {
    return config;
  },
});

License

The MIT License (MIT)

Keywords

linaria

FAQs

Package last updated on 23 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts