mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
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.
This commit is contained in:
parent
bdd6fba29a
commit
14668aa3ee
|
@ -3,13 +3,13 @@ const withCss = require('@zeit/next-css')
|
|||
module.exports = withCss({
|
||||
webpack (config) {
|
||||
config.module.rules.push({
|
||||
test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/,
|
||||
test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/i,
|
||||
use: {
|
||||
loader: 'url-loader',
|
||||
options: {
|
||||
limit: 100000,
|
||||
limit: 8192,
|
||||
publicPath: './',
|
||||
outputPath: 'static/',
|
||||
outputPath: 'static/css/',
|
||||
name: '[name].[ext]'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue