@umijs/bundler-utoopack 4.6.72 → 4.6.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +11 -10
- package/package.json +4 -4
package/dist/config.js
CHANGED
|
@@ -517,6 +517,15 @@ function getSvgModuleRules(opts) {
|
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
+
function getLessStyleOptions(config) {
|
|
521
|
+
return dropUndefinedValues({
|
|
522
|
+
loader: require.resolve("@umijs/bundler-webpack/compiled/less-loader"),
|
|
523
|
+
implementation: require.resolve("@umijs/bundler-utils/compiled/less"),
|
|
524
|
+
modifyVars: config.theme,
|
|
525
|
+
javascriptEnabled: true,
|
|
526
|
+
...config.lessLoader
|
|
527
|
+
});
|
|
528
|
+
}
|
|
520
529
|
function appendPostcssPlugin(postcssConfig, plugin) {
|
|
521
530
|
const [pluginName, pluginOptions = {}] = plugin;
|
|
522
531
|
if (postcssConfig == null) {
|
|
@@ -670,11 +679,7 @@ async function getProdUtooPackConfig(rawOpts) {
|
|
|
670
679
|
)
|
|
671
680
|
},
|
|
672
681
|
styles: {
|
|
673
|
-
less:
|
|
674
|
-
modifyVars: opts.config.theme,
|
|
675
|
-
javascriptEnabled: true,
|
|
676
|
-
...opts.config.lessLoader
|
|
677
|
-
},
|
|
682
|
+
less: getLessStyleOptions(opts.config),
|
|
678
683
|
// postcss: normalizedPostcssConfig,
|
|
679
684
|
sass: opts.config.sassLoader ?? void 0,
|
|
680
685
|
emotion
|
|
@@ -823,11 +828,7 @@ async function getDevUtooPackConfig(rawOpts) {
|
|
|
823
828
|
removeUnusedImports: false
|
|
824
829
|
},
|
|
825
830
|
styles: {
|
|
826
|
-
less:
|
|
827
|
-
modifyVars: opts.config.theme,
|
|
828
|
-
javascriptEnabled: true,
|
|
829
|
-
...opts.config.lessLoader
|
|
830
|
-
},
|
|
831
|
+
less: getLessStyleOptions(opts.config),
|
|
831
832
|
// postcss: normalizedPostcssPlugin,
|
|
832
833
|
sass: opts.config.sassLoader ?? void 0,
|
|
833
834
|
emotion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-utoopack",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.74",
|
|
4
4
|
"description": "@umijs/bundler-utoopack",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@utoo/pack": "1.4.
|
|
17
|
+
"@utoo/pack": "1.4.22",
|
|
18
18
|
"compression": "^1.7.4",
|
|
19
19
|
"connect-history-api-fallback": "^2.0.0",
|
|
20
20
|
"cors": "^2.8.5",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"resolve-url-loader": "5.0.0",
|
|
27
27
|
"sass": "1.54.0",
|
|
28
28
|
"sass-loader": "13.2.0",
|
|
29
|
-
"@umijs/bundler-utils": "4.6.
|
|
30
|
-
"@umijs/bundler-webpack": "4.6.
|
|
29
|
+
"@umijs/bundler-utils": "4.6.74",
|
|
30
|
+
"@umijs/bundler-webpack": "4.6.74"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|