-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from zoom/1.9.5
1.9.5
- Loading branch information
Showing
20 changed files
with
387 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"env": { | ||
"production": { | ||
"presets": [ | ||
] | ||
}, | ||
"development": { | ||
} | ||
}, | ||
"presets": [] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const webpack = require('webpack'); | ||
const WebpackDevServer = require('webpack-dev-server'); | ||
const webpackConfig = require('./webpack.config.dev'); | ||
|
||
function runFunc(err) { | ||
if (err) { | ||
console.log(err); | ||
} | ||
console.log('Listening at http://127.0.0.1:9999/index.html'); | ||
} | ||
|
||
new WebpackDevServer(webpack(webpackConfig), { | ||
publicPath: '/static', | ||
hot: true, | ||
host: '0.0.0.0', | ||
open: 'chrome', | ||
after(app, server) { | ||
}, | ||
headers: { | ||
// 'Cross-Origin-Embedder-Policy': 'unsafe-none', | ||
// 'Cross-Origin-Opener-Policy': 'unsafe-none', | ||
}, | ||
openPage: 'http://127.0.0.1:9999/index.html', | ||
disableHostCheck: true, | ||
historyApiFallback: true, | ||
proxy: [{ | ||
path: '/meeting.html', | ||
target: 'http://127.0.0.1:9998/' | ||
}] | ||
}).listen(9999, '0.0.0.0', runFunc); | ||
|
||
new WebpackDevServer(webpack(webpackConfig), { | ||
publicPath: '/static', | ||
hot: true, | ||
host: '0.0.0.0', | ||
after(app, server) { | ||
}, | ||
headers: { | ||
'Cross-Origin-Embedder-Policy': 'require-corp', | ||
'Cross-Origin-Opener-Policy': 'same-origin', | ||
}, | ||
disableHostCheck: true, | ||
historyApiFallback: true, | ||
}).listen(9998, '0.0.0.0', runFunc); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
{ | ||
"name": "websdk-cdn", | ||
"version": "1.9.1", | ||
"version": "1.9.5", | ||
"description": "Zoom sample app for web client WebSDK", | ||
"main": "index.js", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"concurrently": "^3.5.1", | ||
"http-server": "^0.12.1" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "concurrently \"http-server -a 0.0.0.0 -p 9999 -c-1 -o index.html\"", | ||
"https": "concurrently \"http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html\"" | ||
"start": "set NODE_ENV=development && set BABEL_ENV=development && webpack serve --config webpack.config.dev.js", | ||
"https": "set NODE_ENV=development && set BABEL_ENV=development && webpack serve --config webpack.config.dev.js --https", | ||
"corp": "set NODE_ENV=development && set BABEL_ENV=development && node corp.js --corp" | ||
}, | ||
"author": "Yang Jack", | ||
"license": "ISC" | ||
"author": "Jack Jack", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"webpack": "5.28.0", | ||
"webpack-cli": "4.5.0", | ||
"webpack-dev-server": "3.11.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const args = process.argv.slice(2); | ||
let https = false; | ||
let disableCORP = true; | ||
if (args.includes('--https')) https = true; | ||
if (args.includes('--corp')) disableCORP = false; | ||
|
||
|
||
module.exports = { | ||
devtool: 'eval', | ||
entry: { | ||
}, | ||
context: __dirname, | ||
target: 'web', | ||
devServer: { | ||
https, | ||
cert: './localhost.crt', | ||
key: './localhost.key', | ||
host: '0.0.0.0', | ||
port: 9999, | ||
hot: true, | ||
overlay: true, | ||
historyApiFallback: false, | ||
watchContentBase: true, | ||
disableHostCheck: true, | ||
headers: { | ||
'Access-Control-Allow-Origin': https ? 'https://0.0.0.0:9999' : 'http://0.0.0.0:9999' | ||
}, | ||
open: 'chrome', | ||
openPage: https ? 'https://127.0.0.1:9999' : 'http://127.0.0.1:9999', | ||
}, | ||
mode: 'development', | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('development'), | ||
'process.env.BABEL_ENV': JSON.stringify('development'), | ||
}), | ||
], | ||
}; |
Oops, something went wrong.