@antv/dumi-theme-antv 0.6.4-beta.4 → 0.7.0
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/plugin/index.js +11 -0
- package/package.json +5 -4
package/dist/plugin/index.js
CHANGED
|
@@ -44,6 +44,17 @@ var plugin_default = (api) => {
|
|
|
44
44
|
api.describe({ key: `dumi-theme:${require("../../package.json").name}` });
|
|
45
45
|
api.modifyDefaultConfig((memo) => {
|
|
46
46
|
memo.resolve.codeBlockMode = "passive";
|
|
47
|
+
memo.chainWebpack = (memo2) => {
|
|
48
|
+
memo2.module.rule("less").test(/\.less$/).use("style-loader").loader("style-loader").before("css-loader").end().use("css-loader").loader("css-loader").options({
|
|
49
|
+
importLoaders: 1,
|
|
50
|
+
modules: { auto: true }
|
|
51
|
+
// 启用 CSS Modules(可选)
|
|
52
|
+
}).end().use("less-loader").loader("less-loader").options({
|
|
53
|
+
javascriptEnabled: true
|
|
54
|
+
});
|
|
55
|
+
return memo2;
|
|
56
|
+
};
|
|
57
|
+
memo.exportStatic = {};
|
|
47
58
|
memo.exportStatic.extraRoutePaths = (0, import_examples.getExamplePaths)();
|
|
48
59
|
memo.mfsu = false;
|
|
49
60
|
memo.jsMinifier = "terser";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/dumi-theme-antv",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "AntV website theme based on dumi2.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dumi",
|
|
@@ -110,17 +110,19 @@
|
|
|
110
110
|
"@types/react-slick": "^0.23.13",
|
|
111
111
|
"@types/styled-components": "^5.1.34",
|
|
112
112
|
"@umijs/lint": "^4.3.34",
|
|
113
|
+
"css-loader": "^7.1.2",
|
|
113
114
|
"dumi": "^2.4.13",
|
|
114
115
|
"eslint": "^8.57.1",
|
|
115
116
|
"father": "^4.5.1",
|
|
116
117
|
"father-plugin-dumi-theme": "1.0.0-rc.1",
|
|
117
118
|
"husky": "^8.0.3",
|
|
118
|
-
"less": "^4.2.
|
|
119
|
+
"less": "^4.2.2",
|
|
119
120
|
"less-loader": "^12.2.0",
|
|
120
121
|
"lint-staged": "^13.3.0",
|
|
121
122
|
"prettier": "^2.8.8",
|
|
122
123
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
123
124
|
"prettier-plugin-packagejson": "^2.5.3",
|
|
125
|
+
"style-loader": "^4.0.0",
|
|
124
126
|
"stylelint": "^14.16.1"
|
|
125
127
|
},
|
|
126
128
|
"peerDependencies": {
|
|
@@ -129,8 +131,7 @@
|
|
|
129
131
|
"react-dom": ">=16.9.0"
|
|
130
132
|
},
|
|
131
133
|
"publishConfig": {
|
|
132
|
-
"access": "public"
|
|
133
|
-
"tag": "beta"
|
|
134
|
+
"access": "public"
|
|
134
135
|
},
|
|
135
136
|
"authors": [
|
|
136
137
|
"dumi",
|