文章教程
    https://github.com/zeit/next-plugins/tree/master/packages/next-sass

    安装

    1. npm install --save @zeit/next-sass node-sass

    配置文件使用cssModules

    1. // next.config.js
    2. const withSass = require('@zeit/next-sass')
    3. module.exports = withSass({
    4. cssModules: true
    5. })

    在页面中使用

    1. import css from "./layout.scss"
    2. ...
    3. <Link href='/'><div className={css.nav}>Home</div></Link>

    Note:
    在自定义组件上使用class加样式是不起作用的,比如在上边的Link上加上className