bfg-common 1.2.1 → 1.2.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/minify.js +2 -1
- package/package.json +2 -2
- package/public/spice-console-minify/run.min.js +7 -96
package/minify.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const fs = require('fs')
|
|
2
2
|
const terser = require('terser')
|
|
3
|
+
const path = require('path');
|
|
3
4
|
|
|
4
5
|
// Файлы которые нужно минимизировать
|
|
5
6
|
const filesByOrder = [
|
|
@@ -115,7 +116,7 @@ filesByOrder.forEach((filePath) => {
|
|
|
115
116
|
`Ошибка при минификации файла ${filePath}: ${minified.error.message}`
|
|
116
117
|
)
|
|
117
118
|
} else {
|
|
118
|
-
runMinJsContent += `\
|
|
119
|
+
runMinJsContent += `\r${minified.code}`
|
|
119
120
|
index++
|
|
120
121
|
|
|
121
122
|
// Если последний файл то все помещаем в run.min.js
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfg-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxt build",
|
|
7
7
|
"dev": "nuxt dev --port=3002",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"preview": "nuxt preview",
|
|
10
10
|
"postinstall": "nuxt prepare",
|
|
11
11
|
"minify": "node minify.js",
|
|
12
|
-
"
|
|
12
|
+
"prepublish": "npm run minify"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@novnc/novnc": "^1.4.0",
|