Added a couple of Makefiles to simply build and deploy

This commit is contained in:
2022-03-05 16:22:48 +01:00
parent e78e7427ac
commit 81da287b96
13 changed files with 192 additions and 20 deletions
+12
View File
@@ -0,0 +1,12 @@
.PHONY: all
all: setup build
.PHONY: setup
setup:
mkdir -p dist/
.PHONY: build
build:
npm run build
+1
View File
@@ -1,4 +1,5 @@
@use './reset.scss';
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
$media-small-device-size: 750px;
+9
View File
@@ -1,6 +1,15 @@
import { resolve } from 'path'
import { defineConfig } from 'vite'
export default defineConfig({
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
login: resolve(__dirname, 'login.html'),
},
},
},
server: {
proxy: {
'/api': {