提交 14668aa3 编写于 作者: R Rafael Cossovan 提交者: 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.
上级 bdd6fba2
......@@ -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]'
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册