@mpxjs/webpack-plugin 2.7.1-beta.7 → 2.7.1-beta.8
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/lib/index.js +18 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -219,6 +219,24 @@ class MpxWebpackPlugin {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
static getPageEntry (request) {
|
|
223
|
+
return addQuery(request, { isPage: true })
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static getComponentEntry (request) {
|
|
227
|
+
return addQuery(request, { isComponent: true })
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
static getPluginEntry (request) {
|
|
231
|
+
return addQuery(request, {
|
|
232
|
+
mpx: true,
|
|
233
|
+
extract: true,
|
|
234
|
+
isPlugin: true,
|
|
235
|
+
asScript: true,
|
|
236
|
+
type: 'json'
|
|
237
|
+
})
|
|
238
|
+
}
|
|
239
|
+
|
|
222
240
|
runModeRules (data) {
|
|
223
241
|
const { resourcePath, queryObj } = parseRequest(data.resource)
|
|
224
242
|
if (queryObj.mode) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.7.1-beta.
|
|
3
|
+
"version": "2.7.1-beta.8",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=14.14.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "1220be327d19323bbd05eeac10e24b4dd5add2c2"
|
|
84
84
|
}
|