@mpxjs/webpack-plugin 2.7.60 → 2.7.63

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.
@@ -2,13 +2,13 @@
2
2
  <video
3
3
  ref="_mpx_video_ref"
4
4
  :class="classList"
5
- webkit-playsinline="true" playsinline="true" x5-playsinline="true"
6
5
  :src="src"
7
6
  :controls="showControlsTool"
8
7
  :autoplay="autoplay"
9
8
  :loop="loop"
10
9
  :muted="mutedCopy"
11
10
  :poster="poster"
11
+ v-bind="playsinlineAttr"
12
12
  >
13
13
  </video>
14
14
  </template>
@@ -123,6 +123,20 @@
123
123
  showScreenLockButton: {
124
124
  type: Boolean,
125
125
  default: false
126
+ },
127
+ playsinline: {
128
+ type: Boolean,
129
+ default: true
130
+ }
131
+ },
132
+ computed: {
133
+ playsinlineAttr () {
134
+ if (!this.playsinline) return {}
135
+ return {
136
+ 'webkit-playsinline': true,
137
+ 'playsinline': true,
138
+ 'x5-playsinline': true
139
+ }
126
140
  }
127
141
  },
128
142
  data () {
@@ -234,18 +234,18 @@ module.exports = async function loader (content, map, meta) {
234
234
  imports.unshift({
235
235
  type: 'api_import',
236
236
  importName: '___CSS_LOADER_API_IMPORT___',
237
- url: stringifyRequest(this, require.resolve('./runtime/api'))
237
+ url: stringifyRequest(this, '!!' + require.resolve('./runtime/api'))
238
238
  })
239
239
 
240
240
  if (options.sourceMap) {
241
241
  imports.unshift({
242
242
  importName: '___CSS_LOADER_API_SOURCEMAP_IMPORT___',
243
- url: stringifyRequest(this, require.resolve('./runtime/sourceMaps'))
243
+ url: stringifyRequest(this, '!!' + require.resolve('./runtime/sourceMaps'))
244
244
  })
245
245
  } else {
246
246
  imports.unshift({
247
247
  importName: '___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___',
248
- url: stringifyRequest(this, require.resolve('./runtime/noSourceMaps'))
248
+ url: stringifyRequest(this, '!!' + require.resolve('./runtime/noSourceMaps'))
249
249
  })
250
250
  }
251
251
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.7.60",
3
+ "version": "2.7.63",
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": "72ac7dda91b406492c0f58eb64034cb5d0bd0fe2"
83
+ "gitHead": "501ede81b6300f4298a038cfa78a5592972865f1"
84
84
  }