Fix built assets
This commit is contained in:
parent
7c76b16d13
commit
021cac655c
4 changed files with 9 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ RUN yarn && yarn run build
|
|||
FROM node:14.13.0-alpine3.10
|
||||
|
||||
COPY backend/package.json .
|
||||
RUN npm install --production
|
||||
RUN yarn
|
||||
|
||||
COPY --from=build backend/dist/main.js main.js
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "declared-server",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"description": "Game server for decla.red",
|
||||
"keywords": [],
|
||||
"author": "András Schmelczer <andras@schmelczer.dev> (https://schmelczer.dev/)",
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
"minimist": "^1.2.5",
|
||||
"socket.io": "^2.3.0",
|
||||
"uws": "^10.148.1",
|
||||
"webpack-node-externals": "^2.5.2"
|
||||
"gl-matrix": "^3.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/minimist": "^1.2.0",
|
||||
|
|
@ -40,8 +40,8 @@
|
|||
"eslint-plugin-unused-imports": "^0.1.3",
|
||||
"file-loader": "^6.1.0",
|
||||
"ts-loader": "^8.0.3",
|
||||
"gl-matrix": "^3.3.0",
|
||||
"nodemon": "^2.0.4",
|
||||
"webpack-node-externals": "^2.5.2",
|
||||
"prettier": "^2.0.5",
|
||||
"raw-loader": "^4.0.1",
|
||||
"resolve-url-loader": "^3.1.1",
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@ import { handleFullScreen } from './scripts/handle-full-screen';
|
|||
import { Game } from './scripts/game';
|
||||
import { PlayerCharacterView } from './scripts/objects/player-character-view';
|
||||
|
||||
import '../static/settings.svg';
|
||||
import '../static/minimize.svg';
|
||||
import '../static/maximize.svg';
|
||||
|
||||
glMatrix.setMatrixArrayType(Array);
|
||||
|
||||
overrideDeserialization(CharacterBase, CharacterView);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ module.exports = (env, argv) => ({
|
|||
}),
|
||||
new CleanWebpackPlugin({
|
||||
protectWebpackAssets: false,
|
||||
cleanAfterEveryBuildPatterns: ['*.js', '*.css'],
|
||||
cleanAfterEveryBuildPatterns: ['*', '!index.html', '!static*'],
|
||||
}),
|
||||
],
|
||||
module: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue