workflow: added socket.io-client to bundle and removed it from public/js/vendor folder (this closes #26)

This commit is contained in:
Roberto Tonino 2021-01-31 19:27:40 +01:00
parent d94b753ef3
commit df4c6b2287
7 changed files with 1214 additions and 1211 deletions

View File

@ -17,6 +17,7 @@
"@vue/composition-api": "^1.0.0-beta.21",
"flag-icon-css": "^3.5.0",
"lodash-es": "^4.17.15",
"socket.io-client": "^3.1.0",
"svg-country-flags": "^1.2.9",
"toastify-js": "^1.9.3",
"vue": "^2.6.12",

View File

@ -1,14 +1,15 @@
<!DOCTYPE html>
<html class="h-screen" lang="en" dir="ltr" data-theme="dark">
<html class="h-screen" data-theme="dark" dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta charset="utf-8" />
<title>deemix</title>
<link rel="shortcut icon" href="/favicon.ico">
<link href="/favicon.ico" rel="shortcut icon" />
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0">
<meta
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0"
name="viewport"
/>
<script>
if (localStorage.getItem('selectedTheme')) {
@ -21,7 +22,5 @@
<div id="app"></div>
</body>
<script src="js/vendor/socket.io.min.js"></script>
<script src="js/bundle.js"></script>
</html>

File diff suppressed because one or more lines are too long

7
public/js/vendor/socket.io.min.js generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,6 +28,10 @@ export default {
find: 'vue',
replacement: 'vue/dist/vue.esm'
},
{
find: 'socket.io-client',
replacement: 'socket.io-client/dist/socket.io.min'
},
{
find: '@',
replacement: __dirname + '/src'

View File

@ -1,4 +1,5 @@
import store from '@/store'
import io from 'socket.io-client'
export const socket = io.connect('/')