2018-02-25 18:57:20 +01:00
|
|
|
const withCss = require('@zeit/next-css')
|
|
|
|
|
|
|
|
module.exports = withCss({
|
|
|
|
webpack (config) {
|
|
|
|
config.module.rules.push({
|
2018-11-04 19:42:53 +01:00
|
|
|
test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/i,
|
2018-02-25 18:57:20 +01:00
|
|
|
use: {
|
|
|
|
loader: 'url-loader',
|
|
|
|
options: {
|
2018-11-04 19:42:53 +01:00
|
|
|
limit: 8192,
|
2018-02-25 18:57:20 +01:00
|
|
|
publicPath: './',
|
2018-11-04 19:42:53 +01:00
|
|
|
outputPath: 'static/css/',
|
2018-02-25 18:57:20 +01:00
|
|
|
name: '[name].[ext]'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
return config
|
|
|
|
}
|
|
|
|
})
|