1 Star 0 Fork 224

雯_zxw/dva-boot-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config-overrides.js 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
毛睫(weiq) 提交于 2020-03-24 00:23 . :cake:mock-server test
const {
override,
addDecoratorsLegacy,
disableEsLint,
addBundleVisualizer,
addWebpackAlias,
adjustWorkbox,
addLessLoader,
fixBabelImports,
overrideDevServer
} = require('customize-cra');
const path = require('path');
const { addMockServer } = require('./mock-server');
module.exports = {
webpack: override(
addDecoratorsLegacy(),
disableEsLint(),
addBundleVisualizer({}, true),
addWebpackAlias({
'@': path.resolve(__dirname, 'src'),
components: path.resolve(__dirname, 'src/components'),
assets: path.resolve(__dirname, 'src/assets')
}),
adjustWorkbox(wb =>
Object.assign(wb, {
skipWaiting: true,
exclude: (wb.exclude || []).concat('index.html')
})
),
fixBabelImports('import', {
libraryName: 'antd',
style: true
}),
addLessLoader({
localIdentName: '[local]--[hash:base64:8]',
javascriptEnabled: true,
modifyVars: {}
})
),
devServer: overrideDevServer(
process.env.MOCK === 'SERVER' ? addMockServer() : null
)
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wen-zxw/dva-boot-admin.git
git@gitee.com:wen-zxw/dva-boot-admin.git
wen-zxw
dva-boot-admin
dva-boot-admin
master

搜索帮助