Commit 14668aa3 authored by Rafael Cossovan's avatar Rafael Cossovan Committed by Tim Neutkens

Update next.config.js (#5593)

Tests using a case insensitive expression.
Fixes assets output folder.
Reduce `limit` so we can use `file-loader` on larger files.
parent bdd6fba2
...@@ -3,13 +3,13 @@ const withCss = require('@zeit/next-css') ...@@ -3,13 +3,13 @@ const withCss = require('@zeit/next-css')
module.exports = withCss({ module.exports = withCss({
webpack (config) { webpack (config) {
config.module.rules.push({ config.module.rules.push({
test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/, test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/i,
use: { use: {
loader: 'url-loader', loader: 'url-loader',
options: { options: {
limit: 100000, limit: 8192,
publicPath: './', publicPath: './',
outputPath: 'static/', outputPath: 'static/css/',
name: '[name].[ext]' name: '[name].[ext]'
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment