This commit is contained in:
parent
b85c3958c2
commit
4a11fef0e0
@ -1,4 +1,4 @@
|
||||
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.17 as build
|
||||
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.17 AS build
|
||||
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
|
||||
WORKDIR /app
|
||||
|
||||
@ -7,6 +7,6 @@ RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@9
|
||||
RUN pnpm i && pnpm build && pnpm postbuild
|
||||
|
||||
# final image
|
||||
FROM registry.odit.services/library/nginx-brotli:3.15 as final
|
||||
FROM registry.odit.services/library/nginx-brotli:3.15 AS final
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
@ -1,6 +1,6 @@
|
||||
const fs = require('fs');
|
||||
if (fs.existsSync('./dist/index.html')) {
|
||||
const content = fs.readFileSync('./dist/index.html', { encoding: 'utf8' });
|
||||
import { existsSync, writeFileSync, readFileSync } from "node:fs";
|
||||
if (existsSync("./dist/index.html")) {
|
||||
const content = readFileSync("./dist/index.html", { encoding: "utf8" });
|
||||
const newcontent = content.replace(`"/env.js"`, `"./env.js"`);
|
||||
fs.writeFileSync('./dist/index.html', newcontent);
|
||||
writeFileSync("./dist/index.html", newcontent);
|
||||
}
|
||||
|
31
package.json
31
package.json
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@odit/lfk-selfservice",
|
||||
"version": "0.11.3",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
@ -10,26 +11,22 @@
|
||||
"dependencies": {
|
||||
"bwip-js": "3.2.2",
|
||||
"marked": "2.0.3",
|
||||
"redaxios": "0.4.1",
|
||||
"toastify-js": "1.10.0",
|
||||
"validator": "13.5.2",
|
||||
"redaxios": "0.5.1",
|
||||
"toastify-js": "1.12.0",
|
||||
"validator": "13.12.0",
|
||||
"vue": "3.5.13",
|
||||
"vue-i18n": "9.1.4",
|
||||
"vue-toastification": "2.0.0-rc.1",
|
||||
"vue": "3.0.9",
|
||||
"vue-router": "4.0.5"
|
||||
"vue-router": "4.5.0",
|
||||
"vue-toastification": "2.0.0-rc.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/jit": "0.1.18",
|
||||
"@tailwindcss/aspect-ratio": "0.2.0",
|
||||
"@tailwindcss/forms": "0.3.2",
|
||||
"@tailwindcss/line-clamp": "0.2.0",
|
||||
"@tailwindcss/typography": "0.4.0",
|
||||
"@vitejs/plugin-vue": "1.2.1",
|
||||
"@vue/compiler-sfc": "3.0.11",
|
||||
"autoprefixer": "10.2.5",
|
||||
"tailwindcss": "2.1.1",
|
||||
"release-it": "14.6.1",
|
||||
"vite": "2.1.5"
|
||||
"@tailwindcss/vite": "4.0.0-beta.4",
|
||||
"@vitejs/plugin-vue": "5.2.1",
|
||||
"autoprefixer": "10.4.20",
|
||||
"release-it": "17.10.0",
|
||||
"tailwindcss": "4.0.0-beta.4",
|
||||
"vite": "6.0.2",
|
||||
"vite-plugin-vue-devtools": "^7.6.7"
|
||||
},
|
||||
"release-it": {
|
||||
"git": {
|
||||
|
4976
pnpm-lock.yaml
generated
4976
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +0,0 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
'@tailwindcss/jit': {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
@ -1,3 +1 @@
|
||||
@import 'tailwindcss/base';
|
||||
@import 'tailwindcss/components';
|
||||
@import 'tailwindcss/utilities';
|
||||
@import "tailwindcss";
|
||||
|
@ -1,11 +0,0 @@
|
||||
module.exports = {
|
||||
purge: [ './index.html', './src/**/*.{vue,js,ts,jsx,tsx}' ],
|
||||
darkMode: 'media', // or 'media' or 'class'
|
||||
theme: {
|
||||
extend: {}
|
||||
},
|
||||
variants: {
|
||||
extend: {}
|
||||
},
|
||||
plugins: []
|
||||
};
|
@ -1,13 +1,15 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import path from 'path';
|
||||
import { fileURLToPath, URL } from "node:url";
|
||||
|
||||
import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import vueDevTools from "vite-plugin-vue-devtools";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [ vue() ],
|
||||
base: './',
|
||||
plugins: [vue(), vueDevTools(), tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, '/src')
|
||||
}
|
||||
}
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user