-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
35 lines (32 loc) · 868 Bytes
/
build.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const NodeBuild = require('@voliware/node-build');
const version = require('./package.json').version;
// js
const jsInput = [
'./node_modules/@voliware/template2/dist/template2-bundle.min.js',
'./public/js/webSocketClient.js',
'./public/js/chat.js',
'./public/js/app.js'
];
const jsOutput = "./public/js/app.min.js"
const jsConfig = {
name: "node-chatserver JS",
version: version,
input: jsInput,
output: jsOutput
};
// css
const cssInput = [
'./node_modules/@voliware/template2/dist/template2.min.css',
'./public/css/fontawesome.min.css',
'./public/css/style.css'
];
const cssOutput = "./public/css/style.min.css";
const cssConfig = {
name: "node-chatserver CSS",
version: version,
input: cssInput,
output: cssOutput
};
// build
const configs = [jsConfig, cssConfig];
new NodeBuild.Build(configs).run();