Commit 9759856d by zhaochengxiang

调整配置

parent f9f62ab3
PORT=3008 PORT=3008
GENERATE_SOURCEMAP=false GENERATE_SOURCEMAP=false
SKIP_PREFLIGHT_CHECK=true
\ No newline at end of file
...@@ -2,14 +2,6 @@ const CracoLessPlugin = require('craco-less'); ...@@ -2,14 +2,6 @@ const CracoLessPlugin = require('craco-less');
const { name } = require('./package'); const { name } = require('./package');
module.exports = { module.exports = {
style: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
plugins: [ plugins: [
{ {
plugin: CracoLessPlugin, plugin: CracoLessPlugin,
...@@ -36,7 +28,7 @@ module.exports = { ...@@ -36,7 +28,7 @@ module.exports = {
output: { output: {
library: `${name}-[name]`, library: `${name}-[name]`,
libraryTarget: 'umd', libraryTarget: 'umd',
jsonpFunction: `webpackJsonp_${name}`, chunkLoadingGlobal: `webpackJsonp_${name}`,
globalObject: 'window', globalObject: 'window',
} }
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"@antv/chart-node-g6": "^0.0.4", "@antv/chart-node-g6": "^0.0.4",
"@antv/g2": "^4.1.12", "@antv/g2": "^4.1.12",
"@antv/g6": "^4.2.1", "@antv/g6": "^4.2.1",
"@craco/craco": "^6.1.2", "@craco/craco": "^6.4.3",
"@testing-library/jest-dom": "^5.11.4", "@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0", "@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10", "@testing-library/user-event": "^12.1.10",
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"axios": "^0.19.0", "axios": "^0.19.0",
"copy-to-clipboard": "^3.3.1", "copy-to-clipboard": "^3.3.1",
"core-js": "^3.4.2", "core-js": "^3.4.2",
"craco-less": "^1.17.1", "craco-less": "^2.0.0",
"crypto-js": "^4.0.0", "crypto-js": "^4.0.0",
"echarts": "^5.3.1", "echarts": "^5.3.1",
"eslint-config-react-app": "^7.0.1", "eslint-config-react-app": "^7.0.1",
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
"react-redux": "^7.1.0", "react-redux": "^7.1.0",
"react-resizable": "^3.0.4", "react-resizable": "^3.0.4",
"react-router-dom": "^5.0.1", "react-router-dom": "^5.0.1",
"react-scripts": "4.0.3", "react-scripts": "5.0.1",
"react-virtualized": "^9.22.3", "react-virtualized": "^9.22.3",
"redux": "^4.0.1", "redux": "^4.0.1",
"redux-saga": "^1.0.5", "redux-saga": "^1.0.5",
...@@ -75,10 +75,5 @@ ...@@ -75,10 +75,5 @@
] ]
}, },
"proxy": "http://139.198.127.28:18189", "proxy": "http://139.198.127.28:18189",
"homepage": "http://myhost/data-govern", "homepage": "http://myhost/data-govern"
"devDependencies": {
"autoprefixer": "^9.8.6",
"postcss": "^7.0.36",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.1.4"
}
} }
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
@import './mixins.less'; @import './mixins.less';
@import './variables.less'; @import './variables.less';
// @tailwind base;
@tailwind components;
@tailwind utilities;
//与center-home中的样式保持统一 //与center-home中的样式保持统一
body { body {
margin: 0; margin: 0;
...@@ -59,7 +55,7 @@ code { ...@@ -59,7 +55,7 @@ code {
overflow: auto; overflow: auto;
} }
.d-flex { .d-flex, .flex {
display: flex; display: flex;
} }
......
@paddingArray: 0 0, 1 2px, 2 5px, 3 10px, 4 15px, 5 20px, 6 30px, 7 50px, 8 100px; @paddingArray: 0 0, 1 2px, 2 5px, 3 12px, 4 15px, 5 20px, 6 30px, 7 50px, 8 100px;
.paddingNmargin(@iterator:1) when(@iterator <= length(@paddingArray)) { .paddingNmargin(@iterator:1) when(@iterator <= length(@paddingArray)) {
@name: extract(extract(@paddingArray, @iterator), 1); @name: extract(extract(@paddingArray, @iterator), 1);
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
.paddingNmargin(@iterator + 1); .paddingNmargin(@iterator + 1);
} }
// .paddingNmargin(); .paddingNmargin();
@colorArray: primary @primary-color, success @success-color, warning @warning-color, error @error-color, @colorArray: primary @primary-color, success @success-color, warning @warning-color, error @error-color,
muted @normal-color, white @white, transparent transparent; muted @normal-color, white @white, transparent transparent;
......
const colors = require('tailwindcss/colors')
// console.log(colors)
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
colors,
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment