-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-overrides.js
More file actions
38 lines (35 loc) · 962 Bytes
/
config-overrides.js
File metadata and controls
38 lines (35 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const {
override,
fixBabelImports,
addLessLoader, addDecoratorsLegacy, disableEsLint, addBundleVisualizer, adjustWorkbox, addPostcssPlugins,
} = require("customize-cra");
const autoprefixer = require("autoprefixer");
module.exports = override(
fixBabelImports("import", {
libraryName: "antd",
libraryDirectory: "es",
style: 'less'
}),
addLessLoader({
javascriptEnabled: true,
modifyVars: {
"@layout-body-background": "##FFFFFF",
"@layout-header-background": "#007BFF",
"@layout-footer-background": "#FFFFFF"
},
}),
addPostcssPlugins([
autoprefixer({
overrideBrowserslist: ['last 2 versions', 'not ie <= 11'],
}),
]),
(config) => {
config.module.rules.push({
test: /\.(js|mjs|jsx)$/,
resolve: {
fullySpecified: false
}
});
return config;
}
);