Skip to content

Commit

Permalink
fix: bundle web assets properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jul 18, 2020
1 parent 9b38c08 commit 007696a
Show file tree
Hide file tree
Showing 3 changed files with 566 additions and 2,092 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const wss = new WebSocket.Server({
server: server
});

app.use(express.static('web'));
app.use(express.static(__dirname + '/web'));

wss.on("connection", function (socket) {
console.log("A client as connected!");
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "casparcg-bitc",
"version": "0.2.0",
"version": "0.3.0",
"description": "",
"main": "index.js",
"bin": "index.js",
"scripts": {
"start": "nodemon index.js",
"build": "pkg -t node12-win-x64 --output ../caspar-bitc.exe index.js"
"build": "pkg -t node12-win-x64 --output ../caspar-bitc.exe ."
},
"author": "",
"license": "MIT",
Expand All @@ -14,6 +14,7 @@
"express": "^4.17.1",
"nconf": "^0.10.0",
"osc": "^2.4.0",
"tslib": "^1.13.0",
"ws": "^1.1.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 007696a

Please sign in to comment.