xgplayer-wfs-multi-4reach.js 3.3.3

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 ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "xgplayer-wfs-multi-4reach.js",
3
+ "version": "3.3.3",
4
+ "description": "web video player",
5
+ "main": "./dist/index.js",
6
+ "scripts": {
7
+ "init": "npm install",
8
+ "clean": "rm -rf dist browser",
9
+ "prepare": "npm run build",
10
+ "dev": "webpack --config ./webpack.config.dev.js",
11
+ "build": "webpack --progress --display-chunks -p",
12
+ "watch": "webpack --progress --display-chunks -p --watch"
13
+ },
14
+ "babel": {
15
+ "presets": [
16
+ "es2015"
17
+ ],
18
+ "plugins": [
19
+ "add-module-exports",
20
+ "babel-plugin-bulk-import"
21
+ ]
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/bytedance/xgplayer.git"
26
+ },
27
+ "author": "cuc_ygh@163.com",
28
+ "license": "ISC",
29
+ "devDependencies": {
30
+ "babel-core": "^6.26.3",
31
+ "babel-loader": "^7.1.4",
32
+ "babel-plugin-add-module-exports": "^0.2.1",
33
+ "babel-plugin-bulk-import": "^1.0.2",
34
+ "babel-preset-es2015": "^6.24.1",
35
+ "webpack": "^4.8.3",
36
+ "webpack-cli": "^3.3.2",
37
+ "xgplayer-multi-live-4reach": "^3.3.3"
38
+ },
39
+ "peerDependency": {
40
+ "xgplayer-multi-live-4reach": "^3.3.3"
41
+ },
42
+ "dependencies": {
43
+ "es6-promise": "^4.2.4",
44
+ "glob": "^7.1.2",
45
+ "webworkify": "^1.5.0"
46
+ }
47
+ }
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ plugins: {
3
+ 'postcss-cssnext': {
4
+ browserslist: ['cover 99.5%'],
5
+ },
6
+ },
7
+ };
package/readme.md ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,76 @@
1
+ const polyfill = []
2
+
3
+ const umd = {
4
+ entry: polyfill.concat(['./src/index.js']),
5
+ output: {
6
+ path: `${__dirname}/dist`,
7
+ filename: 'index.js',
8
+ library: 'WfsPlayer',
9
+ libraryTarget: 'umd'
10
+ },
11
+ mode: 'production',
12
+ module: {
13
+ rules: [{
14
+ test: /\.js$/,
15
+ loader: 'babel-loader',
16
+ exclude: [/node_modules/]
17
+ }, {
18
+ test: /\.scss$/,
19
+ use: [
20
+ 'style-loader',
21
+ {
22
+ loader: 'css-loader',
23
+ options: {
24
+ importLoaders: 1,
25
+ minimize: true
26
+ }
27
+ },
28
+ 'postcss-loader',
29
+ 'sass-loader'
30
+ ]
31
+ }]
32
+ },
33
+ optimization: {
34
+ minimize: true
35
+ }
36
+ }
37
+
38
+ const client = {
39
+ entry: polyfill.concat(['./src/index.js']),
40
+ output: {
41
+ path: `${__dirname}/browser`,
42
+ filename: 'index.js',
43
+ library: 'WfsPlayer',
44
+ libraryTarget: 'window'
45
+ },
46
+ module: {
47
+ rules: [{
48
+ test: /\.js$/,
49
+ loader: 'babel-loader',
50
+ exclude: [/node_modules/]
51
+ }, {
52
+ test: /\.scss$/,
53
+ use: [
54
+ 'style-loader',
55
+ {
56
+ loader: 'css-loader',
57
+ options: {
58
+ importLoaders: 1,
59
+ minimize: true
60
+ }
61
+ },
62
+ 'postcss-loader',
63
+ 'sass-loader'
64
+ ]
65
+ }]
66
+ },
67
+ externals: {
68
+ 'xgplayer-multi-live-4reach': 'LivePlayer'
69
+ },
70
+ mode: 'production',
71
+ optimization: {
72
+ minimize: true
73
+ }
74
+ }
75
+
76
+ module.exports = [umd, client]