mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
9c4eefcdbf
* Add prettier for examples directory * Fix files * Fix linting * Add prettier script in case it has to be ran again
24 lines
496 B
JavaScript
24 lines
496 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
|
|
}
|
|
})
|
|
)
|