rsnext/examples/with-carbon-components/next.config.js

21 lines
460 B
JavaScript

const withSass = require('@zeit/next-sass')
const withImages = require('next-images')
module.exports = withImages(withSass({
webpack (config) {
config.module.rules.push({
test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/,
use: {
loader: 'url-loader',
options: {
limit: 100000,
publicPath: './',
outputPath: 'static/',
name: '[name].[ext]'
}
}
})
return config
}
}))