@winner-fed/bundler-rsbuild 0.9.2-alpha.1 → 0.9.2-alpha.2
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.
|
@@ -23,8 +23,8 @@ __export(toolsConfig_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(toolsConfig_exports);
|
|
25
25
|
function getToolsConfig(opts) {
|
|
26
|
-
var _a, _b, _c;
|
|
27
26
|
const { userConfig } = opts;
|
|
27
|
+
console.log("userConfig", userConfig.extraPostCSSPlugins);
|
|
28
28
|
return {
|
|
29
29
|
autoprefixer: userConfig.autoprefixer || {},
|
|
30
30
|
rspack: async (config, { env }) => {
|
|
@@ -34,14 +34,19 @@ function getToolsConfig(opts) {
|
|
|
34
34
|
return config;
|
|
35
35
|
},
|
|
36
36
|
cssLoader: userConfig.cssLoader || {},
|
|
37
|
-
postcss: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
postcss: () => {
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
return {
|
|
40
|
+
postcssOptions: {
|
|
41
|
+
// handle postcssLoader
|
|
42
|
+
...((_a = userConfig.postcssLoader) == null ? void 0 : _a.postcssOptions) || {},
|
|
43
|
+
plugins: [
|
|
44
|
+
...((_c = (_b = userConfig.postcssLoader) == null ? void 0 : _b.postcssOptions) == null ? void 0 : _c.plugins) || [],
|
|
45
|
+
// handle extraPostCSSPlugins
|
|
46
|
+
...userConfig.extraPostCSSPlugins || []
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
};
|
|
45
50
|
},
|
|
46
51
|
styleLoader: userConfig.styleLoader || {},
|
|
47
52
|
// 自带的 htmlPlugin 不满足,禁掉了,可以参考 preset-win/src/features/rsbuild/rsbuid.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@winner-fed/bundler-rsbuild",
|
|
3
|
-
"version": "0.9.2-alpha.
|
|
3
|
+
"version": "0.9.2-alpha.2",
|
|
4
4
|
"description": "@winner-fed/bundler-rsbuild",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"@rsbuild/plugin-node-polyfill": "1.0.3",
|
|
15
15
|
"@rsbuild/plugin-sass": "1.0.1-beta.4",
|
|
16
16
|
"@rsbuild/plugin-type-check": "1.0.1-beta.4",
|
|
17
|
-
"@winner-fed/utils": "0.9.2-alpha.
|
|
18
|
-
"@winner-fed/bundler-utils": "0.9.2-alpha.
|
|
17
|
+
"@winner-fed/utils": "0.9.2-alpha.2",
|
|
18
|
+
"@winner-fed/bundler-utils": "0.9.2-alpha.2"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|