2 Star 2 Fork 1

Hongshaoli/react-next-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
next.config.js 755 Bytes
一键复制 编辑 原始数据 按行查看 历史
hsl947 提交于 2020-08-11 16:42 +08:00 . 集成antd,优化代码结构
const withCSS = require('@zeit/next-css')
const fs = require('fs')
const path = require('path')
const withLessExcludeAntd = require('./next-less.config.js')
if (typeof require !== 'undefined') {
require.extensions['.less'] = (file) => {}
require.extensions['.css'] = (file) => {}
}
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
})
module.exports = withBundleAnalyzer(
withCSS(
withLessExcludeAntd({
lessLoaderOptions: {
javascriptEnabled: true,
modifyVars: {
'primary-color': '#3f8ffd'
}
},
cssModules: true,
cssLoaderOptions: {
importLoaders: 1,
localIdentName: '[local]_[hash:base64:5]'
}
})
)
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/hsl947/react-next-app.git
git@gitee.com:hsl947/react-next-app.git
hsl947
react-next-app
react-next-app
master

搜索帮助