swico 2.0.0-beta.27 → 2.0.0-beta.28
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/package.json +1 -1
- package/src/config/rspack.base.vue.d.ts +26 -17
- package/src/config/rspack.base.vue.js +66 -62
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
|
|
|
21
21
|
experimentalInlineMatchResource: boolean;
|
|
22
22
|
};
|
|
23
23
|
use?: undefined;
|
|
24
|
+
oneOf?: undefined;
|
|
24
25
|
type?: undefined;
|
|
25
26
|
generator?: undefined;
|
|
26
27
|
} | {
|
|
@@ -42,31 +43,36 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
|
|
|
42
43
|
}[];
|
|
43
44
|
loader?: undefined;
|
|
44
45
|
options?: undefined;
|
|
46
|
+
oneOf?: undefined;
|
|
45
47
|
type?: undefined;
|
|
46
48
|
generator?: undefined;
|
|
47
49
|
} | {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
oneOf: {
|
|
51
|
+
test: RegExp;
|
|
52
|
+
use: (string | {
|
|
53
|
+
loader: string;
|
|
54
|
+
options: {
|
|
55
|
+
modules: {
|
|
56
|
+
localIdentName: string;
|
|
57
|
+
namedExport: boolean;
|
|
58
|
+
};
|
|
59
|
+
postcssOptions?: undefined;
|
|
55
60
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
} | {
|
|
62
|
+
loader: string;
|
|
63
|
+
options: {
|
|
64
|
+
postcssOptions: {
|
|
65
|
+
plugins: string[][];
|
|
66
|
+
};
|
|
67
|
+
modules?: undefined;
|
|
63
68
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
})[];
|
|
70
|
+
}[];
|
|
71
|
+
test?: undefined;
|
|
67
72
|
loader?: undefined;
|
|
68
73
|
exclude?: undefined;
|
|
69
74
|
options?: undefined;
|
|
75
|
+
use?: undefined;
|
|
70
76
|
type?: undefined;
|
|
71
77
|
generator?: undefined;
|
|
72
78
|
} | {
|
|
@@ -79,6 +85,7 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
|
|
|
79
85
|
exclude?: undefined;
|
|
80
86
|
options?: undefined;
|
|
81
87
|
use?: undefined;
|
|
88
|
+
oneOf?: undefined;
|
|
82
89
|
} | {
|
|
83
90
|
test: RegExp;
|
|
84
91
|
type: string;
|
|
@@ -86,6 +93,7 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
|
|
|
86
93
|
exclude?: undefined;
|
|
87
94
|
options?: undefined;
|
|
88
95
|
use?: undefined;
|
|
96
|
+
oneOf?: undefined;
|
|
89
97
|
generator?: undefined;
|
|
90
98
|
} | {
|
|
91
99
|
test: RegExp;
|
|
@@ -93,6 +101,7 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
|
|
|
93
101
|
exclude?: undefined;
|
|
94
102
|
options?: undefined;
|
|
95
103
|
use?: undefined;
|
|
104
|
+
oneOf?: undefined;
|
|
96
105
|
type?: undefined;
|
|
97
106
|
generator?: undefined;
|
|
98
107
|
})[];
|
|
@@ -88,74 +88,78 @@ function default_1(_a) {
|
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
|
|
92
|
-
use: [
|
|
93
|
-
env === 'dev' ? vueStyleLoader : core_1.CssExtractRspackPlugin.loader,
|
|
94
|
-
{
|
|
95
|
-
loader: cssLoader,
|
|
96
|
-
options: {
|
|
97
|
-
modules: {
|
|
98
|
-
localIdentName: 'moduleStyle_[local]_[contenthash:8]',
|
|
99
|
-
namedExports: false
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
loader: postcssLoader,
|
|
105
|
-
options: {
|
|
106
|
-
postcssOptions: {
|
|
107
|
-
plugins: [['autoprefixer']]
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
test: /\.less$/,
|
|
115
|
-
use: [
|
|
116
|
-
env === 'dev' ? vueStyleLoader : core_1.CssExtractRspackPlugin.loader,
|
|
117
|
-
{
|
|
118
|
-
loader: cssLoader,
|
|
119
|
-
options: {
|
|
120
|
-
modules: {
|
|
121
|
-
localIdentName: 'moduleStyle_[local]_[contenthash:8]',
|
|
122
|
-
namedExports: false
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
91
|
+
oneOf: [
|
|
126
92
|
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
93
|
+
test: /\.css$/,
|
|
94
|
+
use: [
|
|
95
|
+
env === 'dev' ? vueStyleLoader : core_1.CssExtractRspackPlugin.loader,
|
|
96
|
+
{
|
|
97
|
+
loader: cssLoader,
|
|
98
|
+
options: {
|
|
99
|
+
modules: {
|
|
100
|
+
localIdentName: 'moduleStyle_[local]_[contenthash:8]',
|
|
101
|
+
namedExport: false
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
loader: postcssLoader,
|
|
107
|
+
options: {
|
|
108
|
+
postcssOptions: {
|
|
109
|
+
plugins: [['autoprefixer']]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
131
112
|
}
|
|
132
|
-
|
|
113
|
+
]
|
|
133
114
|
},
|
|
134
|
-
lessLoader
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
test: /\.scss$/,
|
|
139
|
-
use: [
|
|
140
|
-
vueStyleLoader,
|
|
141
115
|
{
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
116
|
+
test: /\.less$/,
|
|
117
|
+
use: [
|
|
118
|
+
env === 'dev' ? vueStyleLoader : core_1.CssExtractRspackPlugin.loader,
|
|
119
|
+
{
|
|
120
|
+
loader: cssLoader,
|
|
121
|
+
options: {
|
|
122
|
+
modules: {
|
|
123
|
+
localIdentName: 'moduleStyle_[local]_[contenthash:8]',
|
|
124
|
+
namedExport: false
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
loader: postcssLoader,
|
|
130
|
+
options: {
|
|
131
|
+
postcssOptions: {
|
|
132
|
+
plugins: [['autoprefixer']]
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
lessLoader
|
|
137
|
+
]
|
|
149
138
|
},
|
|
150
139
|
{
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
140
|
+
test: /\.scss$/,
|
|
141
|
+
use: [
|
|
142
|
+
vueStyleLoader,
|
|
143
|
+
{
|
|
144
|
+
loader: cssLoader,
|
|
145
|
+
options: {
|
|
146
|
+
modules: {
|
|
147
|
+
localIdentName: 'moduleStyle_[local]_[contenthash:8]',
|
|
148
|
+
namedExport: false
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
loader: postcssLoader,
|
|
154
|
+
options: {
|
|
155
|
+
postcssOptions: {
|
|
156
|
+
plugins: [['autoprefixer']]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
sassLoader
|
|
161
|
+
]
|
|
162
|
+
}
|
|
159
163
|
]
|
|
160
164
|
},
|
|
161
165
|
{
|