1 Star 0 Fork 0

gyges / quickstart-react-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
craco.config.js 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
const CracoLessPlugin = require('craco-less');
const path = require('path');
module.exports = {
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
'@primary-color': '#556ee6',
'@success-color': '#34c38f',
'@warning-color': '#f1b44c',
'@error-color': '#f46a6a',
'@info-color': '#50a5f1',
'@processing-color': '#6485ff',
'@text-color': '#495057',
'@border-radius-base': '6px',
'@btn-border-radius-base': '5px',
'@btn-border-radius-sm': '4px',
'@font-family': 'Rubik, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif',
},
javascriptEnabled: true,
},
},
},
},
],
webpack: {
configure: (webpackConfig, { env, paths }) => {
paths.appBuild = webpackConfig.output.path = path.resolve('dist');
return webpackConfig;
},
style: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
},
devServer: {
hot: true,
proxy: {
'/admin/api/v1': {
target: 'http://localhost:8080/',
}
},
historyApiFallback: {
rewrites: [
{ from: /^\/$/, to: '/index.html' },
],
},
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/gyges/quickstart-react-admin.git
git@gitee.com:gyges/quickstart-react-admin.git
gyges
quickstart-react-admin
quickstart-react-admin
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891