标签:red ddd dde conf res pac dir ima 配置
脚手架react-app-rewired 的config-overrides.js 文件配置方式
const path = require("path"); const { override, fixBabelImports, addLessLoader, addDecoratorsLegacy, disableEsLint, addWebpackAlias } = require(‘customize-cra‘); module.exports = override( addDecoratorsLegacy(), disableEsLint(), addWebpackAlias({ ‘@‘: path.resolve(__dirname, "./src") }), fixBabelImports(‘antd‘, { libraryName: ‘antd‘, libraryDirectory: ‘es‘, style: true, }), fixBabelImports(‘import‘, { libraryName: ‘antd-mobile‘, style: true }), addLessLoader({ javascriptEnabled: true, }) );
标签:red ddd dde conf res pac dir ima 配置
原文地址:https://www.cnblogs.com/qinStore/p/12616648.html