1
0
mirror of https://github.com/Luzifer/browserphone.git synced 2024-09-18 22:52:57 +00:00

Update dependencies and build system

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-08-24 00:30:59 +02:00
parent 803bdadb6a
commit d7a753d70a
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D
5 changed files with 10642 additions and 4957 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
dist/app.js dist/app.js
dist/app.js.LICENSE.txt
node_modules node_modules

View File

@ -1,4 +1,4 @@
FROM node:14 as builder FROM node:18 as builder
COPY . /src COPY . /src
WORKDIR /src WORKDIR /src

15518
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +1,33 @@
{ {
"devDependencies": { "devDependencies": {
"axios": "^0.19.2", "@babel/core": "^7.18.13",
"babel-core": "^6.26.3", "@babel/plugin-transform-runtime": "^7.18.10",
"babel-loader": "^7.1.5", "@babel/preset-env": "^7.18.10",
"babel-plugin-transform-runtime": "^6.23.0", "@babel/runtime": "^7.18.9",
"babel-preset-env": "^1.7.0", "babel-loader": "^8.2.5",
"bootstrap": "^4.5.0", "css-loader": "^6.7.1",
"bootstrap-vue": "^2.16.0", "node-sass": "^7.0.1",
"bootswatch": "^4.5.0", "sass-loader": "^13.0.2",
"css-loader": "^1.0.0", "style-loader": "^3.3.1",
"node-sass": "^4.14.1", "util": "^0.12.4",
"popper.js": "^1.16.1", "vue-loader": "^15",
"sass-loader": "^7.3.1", "vue-template-compiler": "^2",
"style-loader": "^0.21.0", "webpack": "^5.74.0",
"vue": "^2.6.11", "webpack-cli": "^4.10.0"
"vue-i18n": "^8.20.0",
"vue-loader": "^15.9.3",
"vue-template-compiler": "^2.6.11",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-middleware": "^1.4.0",
"webpack-hot-middleware": "^2.9.1"
}, },
"name": "browserphone", "name": "browserphone",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "webpack -p" "build": "webpack --mode production"
}, },
"dependencies": { "dependencies": {
"@twilio/voice-sdk": "^2.1.1" "@twilio/voice-sdk": "^2.1.1",
"axios": "^0.27.2",
"bootstrap": "^4",
"bootstrap-vue": "^2.22.0",
"bootswatch": "^4",
"popper.js": "^1.16.1",
"vue": "^2",
"vue-i18n": "^8"
} }
} }

View File

@ -1,7 +1,8 @@
const path = require('path') const path = require('path')
const webpack = require('webpack'); const webpack = require('webpack')
const { VueLoaderPlugin } = require('vue-loader')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
function resolve(dir) { function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
@ -14,16 +15,20 @@ module.exports = {
path: resolve('./dist'), path: resolve('./dist'),
}, },
plugins: [ plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': { 'process.env': {
'NODE_ENV': JSON.stringify('production') NODE_ENV: JSON.stringify('production'),
} },
}), }),
new VueLoaderPlugin(), new VueLoaderPlugin(),
], ],
resolve: {
fallback: {
util: require.resolve('util/'),
},
},
optimization: { optimization: {
minimize: true minimize: true,
}, },
module: { module: {
rules: [ rules: [
@ -43,14 +48,9 @@ module.exports = {
use: { use: {
loader: 'babel-loader', loader: 'babel-loader',
options: { options: {
plugins: [ presets: [['@babel/preset-env', { targets: { browsers: ['>0.25%', 'not ie 11', 'not op_mini all'] } }]],
['transform-runtime', {polyfill: false, regenerator: true}], },
], },
presets: [
['env', { "targets": { "browsers": [">0.25%", "not ie 11", "not op_mini all"] } }]
]
}
}
}, },
{ {
@ -58,6 +58,6 @@ module.exports = {
loader: 'vue-loader', loader: 'vue-loader',
}, },
] ],
} },
} }