mirror of
https://github.com/sergeyyarkov/next-apollo-graphql-setup.git
synced 2026-10-11 02:09:23 +03:00
14 lines
346 B
JavaScript
14 lines
346 B
JavaScript
const withSass = require('@zeit/next-sass')
|
|
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin')
|
|
|
|
module.exports = withSass({
|
|
cssModules: true,
|
|
webpack: (config, { dev, isServer }) => {
|
|
if (isServer) return config
|
|
|
|
config.optimization.minimizer.push(new OptimizeCSSAssetsPlugin({}))
|
|
|
|
return config
|
|
}
|
|
})
|