Closed weeeziyuanli closed 3 years ago
I use bottom config, but no work
const withSass = require('@zeit/next-sass'); const withImages = require('next-images'); module.exports = withImages( withSass({ sassLoaderOptions: { includePaths: ['./styles/'] }, cssModules: true, cssLoaderOptions: { importLoaders: 1, localIdentName: '[local]___[hash:base64:5]' } }) );
scss文件中
background: url(/static/images/header_bg@2x.jpg) top center;
Originally posted by @arefaslani in https://github.com/twopluszero/next-images/issues/10#issuecomment-426269041
@weeeziyuanli Please also try this package to compose plugins: https://www.npmjs.com/package/next-compose-plugins
I use bottom config, but no work
scss文件中
Originally posted by @arefaslani in https://github.com/twopluszero/next-images/issues/10#issuecomment-426269041