1.0.5 • Published 4 years ago
@newhighsco/next-plugin-css-options v1.0.5
next-plugin-css-options
Next.js plugin for overriding css-loader options
Installation
Install Next.js and @newhighsco/next-plugin-css-options
:
npm install --save next @newhighsco/next-plugin-css-options
Usage
Create a next.config.js
in your project:
// next.config.js
const withCssOptions = require('@newhighsco/next-plugin-css-options')
module.exports = withCssOptions({
cssOptions: {
/* css-loader config options here */
},
cssModulesOptions: {
/* config options for CSS Modules here */
}
})
Options
See options supported by css-loader