mirror of
https://github.com/sergeyyarkov/next-apollo-graphql-setup.git
synced 2026-10-11 10:19:43 +03:00
17 lines
417 B
JavaScript
17 lines
417 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
|
|
},
|
|
env: {
|
|
GRAPHQL_API_URI: 'http://localhost:3000/api/graphql'
|
|
}
|
|
})
|