Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
2155551b
Commit
2155551b
authored
Jul 18, 2024
by
杨思琦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'revert-
71375035
' into 'master'
Revert "Merge branch 'devNew' into 'master'" See merge request
!40
parents
71375035
7e0303be
Pipeline
#90954
waiting for manual action with stages
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
66 deletions
+60
-66
cssRules.js
internals/webpack/config/cssRules.js
+20
-20
css.js
internals/webpack/css.js
+24
-24
webpack.prod.babel.js
internals/webpack/webpack.prod.babel.js
+0
-10
package.json
package.json
+16
-12
No file name available
+0
-0
No files found.
internals/webpack/config/cssRules.js
View file @
2155551b
...
...
@@ -80,26 +80,26 @@ export async function addCSSRules(opts) {
...
userConfig
.
cssLoader
,
});
//
rule
//
.use('postcss-loader')
//
.loader(require.resolve('@umijs/bundler-webpack/compiled/postcss-loader'))
//
.options({
//
postcssOptions: {
//
ident: 'postcss',
//
plugins: [
//
require('../compiled/postcss-flexbugs-fixes'),
//
require('postcss-preset-env')({
//
browsers: opts.browsers,
//
autoprefixer: {
//
flexbox: 'no-2009',
//
...userConfig.autoprefixer,
//
},
//
stage: 3,
//
}),
//
].concat(userConfig.extraPostCSSPlugins || []),
//
...userConfig.postcssLoader,
//
},
//
});
rule
.
use
(
'postcss-loader'
)
.
loader
(
require
.
resolve
(
'@umijs/bundler-webpack/compiled/postcss-loader'
))
.
options
({
postcssOptions
:
{
ident
:
'postcss'
,
plugins
:
[
require
(
'../compiled/postcss-flexbugs-fixes'
),
require
(
'postcss-preset-env'
)({
browsers
:
opts
.
browsers
,
autoprefixer
:
{
flexbox
:
'no-2009'
,
...
userConfig
.
autoprefixer
,
},
stage
:
3
,
}),
].
concat
(
userConfig
.
extraPostCSSPlugins
||
[]),
...
userConfig
.
postcssLoader
,
},
});
if
(
loader
)
{
rule
...
...
internals/webpack/css.js
View file @
2155551b
...
...
@@ -70,30 +70,30 @@ function createCSSRule({
),
);
//
rule
//
.use('postcss-loader')
//
.loader(require.resolve('postcss-loader'))
//
.options(
//
deepmerge(
//
{
//
ident: 'postcss',
//
plugins: () => [
//
require('postcss-flexbugs-fixes'),
//
require('postcss-preset-env')({
//
// TODO: set browsers
//
autoprefixer: {
//
...config.autoprefixer,
//
overrideBrowserslist: browserslist,
//
},
//
// https://cssdb.org/
//
stage: 3,
//
}),
//
...(config.extraPostCSSPlugins ? config.extraPostCSSPlugins : []),
//
],
//
},
//
config.postcssLoader || {},
//
),
//
);
rule
.
use
(
'postcss-loader'
)
.
loader
(
require
.
resolve
(
'postcss-loader'
))
.
options
(
deepmerge
(
{
ident
:
'postcss'
,
plugins
:
()
=>
[
require
(
'postcss-flexbugs-fixes'
),
require
(
'postcss-preset-env'
)({
// TODO: set browsers
autoprefixer
:
{
...
config
.
autoprefixer
,
overrideBrowserslist
:
browserslist
,
},
// https://cssdb.org/
stage
:
3
,
}),
...(
config
.
extraPostCSSPlugins
?
config
.
extraPostCSSPlugins
:
[]),
],
},
config
.
postcssLoader
||
{},
),
);
if
(
loader
)
{
rule
...
...
internals/webpack/webpack.prod.babel.js
View file @
2155551b
...
...
@@ -59,10 +59,7 @@ module.exports = require('./webpack.base.babel')({
test
:
/
[\\/]
node_modules
[\\/]
/
,
name
(
module
)
{
const
packageName
=
module
.
context
.
match
(
/
[\\/]
node_modules
[\\/](
.*
?)([\\/]
|$
)
/
)[
1
];
// @ts-ignore
if
([
'@wisdom-components'
,
'swiper'
].
indexOf
(
packageName
)
===
-
1
)
{
return
`npm.
${
packageName
.
replace
(
'@'
,
''
)}
`
;
}
},
},
bizComponent
:
{
...
...
@@ -72,13 +69,6 @@ module.exports = require('./webpack.base.babel')({
test
:
/
[\\/]
src
[\\/]
components
[\\/]
/
,
name
:
'biz-component'
,
},
layouts
:
{
chunks
:
'all'
,
minSize
:
0
,
maxInitialRequests
:
10
,
test
:
/
[\\/]
src
[\\/]
layouts
[\\/]
/
,
name
:
'layouts'
,
},
arcgis_views
:
{
chunks
:
'all'
,
minSize
:
0
,
...
...
package.json
View file @
2155551b
...
...
@@ -99,27 +99,27 @@
"
@ant-design/colors
"
:
"^5.0.1"
,
"
@ant-design/icons
"
:
"^4.0.0"
,
"
@ant-design/pro-form
"
:
"1.70.1"
,
"
@ant-design/pro-layout
"
:
"
6.38.1
1"
,
"
@ant-design/pro-layout
"
:
"
^6.24.
1"
,
"
@ant-design/pro-list
"
:
"1.21.71"
,
"
@ant-design/pro-skeleton
"
:
"^1.0.0-beta.2"
,
"
@ant-design/pro-table
"
:
"2.77.1"
,
"
@ant-design/pro-utils
"
:
"1.42.4"
,
"
@ant-design/pro-provider
"
:
"1.8.1"
,
"
@ant-design/pro-table
"
:
"2.76.4"
,
"
@ant-design/pro-utils
"
:
"^1.10.4"
,
"
@babel/polyfill
"
:
"7.4.3"
,
"
@babel/runtime
"
:
"^7.10.5"
,
"
@congcongcai/jieba.js
"
:
"0.0.3"
,
"
@esri/calcite-colors
"
:
"6.0.3"
,
"
@wisdom-cesium/cesium
"
:
"^1.1.49"
,
"
@wisdom-cesium/krpano
"
:
"1.0.29-60"
,
"
@wisdom-components/basictable
"
:
"^1.5.16"
,
"
@wisdom-components/empty
"
:
"^1.4.1"
,
"
@wisdom-components/videoslidermodal
"
:
"^1.1.60"
,
"
@wisdom-map/amap
"
:
"^2.0.5
"
,
"
@wisdom-map/arcgismap
"
:
"^2.0.18
"
,
"
@wisdom-map/basemap
"
:
"^2.0.1
"
,
"
@wisdom-map/util
"
:
"1.2.9"
,
"
@wisdom-utils/components
"
:
"0.1.3
70
"
,
"
@wisdom-map/amap
"
:
"1.9.3
"
,
"
@wisdom-map/arcgismap
"
:
"1.4.0-345
"
,
"
@wisdom-map/basemap
"
:
"1.1.0-47
"
,
"
@wisdom-map/util
"
:
"1.2.9"
,
"
@wisdom-utils/components
"
:
"0.1.3
64
"
,
"
@wisdom-utils/runtime
"
:
"0.0.51"
,
"
@wisdom-utils/utils
"
:
"0.1.40
7
"
,
"
@wisdom-utils/utils
"
:
"0.1.40
4
"
,
"
animate.css
"
:
"^4.1.1"
,
"
antd
"
:
"4.21.2"
,
"
bcryptjs
"
:
"2.4.3"
,
...
...
@@ -132,7 +132,7 @@
"
history
"
:
"4.9.0"
,
"
hoist-non-react-statics
"
:
"3.3.0"
,
"
immer
"
:
"3.0.0"
,
"
immutable
"
:
"^4.0.0"
,
"
immutable
"
:
"^4.0.0
-rc.12
"
,
"
jquery
"
:
"^3.7.0"
,
"
js-base64
"
:
"^3.5.2"
,
"
js-cookie
"
:
"^2.2.1"
,
...
...
@@ -152,7 +152,6 @@
"
rc-cascader
"
:
"^2.3.2"
,
"
rc-queue-anim
"
:
"^2.0.0"
,
"
react
"
:
"17.0.2"
,
"
react-file-viewer
"
:
"^1.2.1"
,
"
react-activation
"
:
"^0.9.9"
,
"
react-dom
"
:
"17.0.2"
,
"
react-draggable
"
:
"^4.4.3"
,
...
...
@@ -272,6 +271,11 @@
"
ora
"
:
"^5.1.0"
,
"
path-to-regexp
"
:
"^2.4.0"
,
"
plop
"
:
"2.3.0"
,
"
postcss
"
:
"7.0.32"
,
"
postcss-flexbugs-fixes
"
:
"4.2.1"
,
"
postcss-loader
"
:
"3.0.0"
,
"
postcss-preset-env
"
:
"6.7.0"
,
"
postcss-safe-parser
"
:
"^4.0.2"
,
"
pre-commit
"
:
"1.2.2"
,
"
prettier
"
:
"1.17.0"
,
"
querystring-browser
"
:
"^1.0.4"
,
...
...
View file @
2155551b
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment