Compare commits
No commits in common. "75b4dac0fefee48c99024df15ffffe6ed5c0abe8" and "152e74190d13d30110d494a9062f868390ca19b3" have entirely different histories.
75b4dac0fe
...
152e74190d
@ -3,7 +3,6 @@ WORKDIR /app
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn
|
RUN yarn
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
RUN yarn postbuild
|
|
||||||
# final image
|
# final image
|
||||||
FROM fholzer/nginx-brotli:v1.19.1
|
FROM fholzer/nginx-brotli:v1.19.1
|
||||||
COPY --from=0 /app/dist /usr/share/nginx/html
|
COPY --from=0 /app/dist /usr/share/nginx/html
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
const fs = require('fs');
|
|
||||||
if (fs.existsSync('./dist/index.html')) {
|
|
||||||
const content = fs.readFileSync('./dist/index.html', { encoding: 'utf8' });
|
|
||||||
const newcontent = content.replace(`"/env.js"`, `"./env.js"`);
|
|
||||||
fs.writeFileSync('./dist/index.html', newcontent);
|
|
||||||
}
|
|
13
package.json
13
package.json
@ -4,15 +4,14 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"release": "release-it --only-version",
|
"release": "release-it --only-version"
|
||||||
"postbuild": "node env_fix.js"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"marked": "2.0.3",
|
"marked": "2.0.1",
|
||||||
"redaxios": "0.4.1",
|
"redaxios": "0.4.1",
|
||||||
"toastify-js": "1.10.0",
|
"toastify-js": "1.10.0",
|
||||||
"validator": "13.5.2",
|
"validator": "13.5.2",
|
||||||
"vue-i18n": "9.1.4",
|
"vue-i18n": "9.0.0",
|
||||||
"vue-toastification": "2.0.0-rc.1",
|
"vue-toastification": "2.0.0-rc.1",
|
||||||
"vue": "3.0.9",
|
"vue": "3.0.9",
|
||||||
"vue-router": "4.0.5"
|
"vue-router": "4.0.5"
|
||||||
@ -24,10 +23,10 @@
|
|||||||
"@tailwindcss/line-clamp": "0.2.0",
|
"@tailwindcss/line-clamp": "0.2.0",
|
||||||
"@tailwindcss/typography": "0.4.0",
|
"@tailwindcss/typography": "0.4.0",
|
||||||
"@vitejs/plugin-vue": "1.2.1",
|
"@vitejs/plugin-vue": "1.2.1",
|
||||||
"@vue/compiler-sfc": "3.0.11",
|
"@vue/compiler-sfc": "3.0.10",
|
||||||
"autoprefixer": "10.2.5",
|
"autoprefixer": "10.2.5",
|
||||||
"tailwindcss": "2.1.1",
|
"tailwindcss": "2.0.4",
|
||||||
"release-it": "14.6.1",
|
"release-it": "14.5.0",
|
||||||
"vite": "2.1.5"
|
"vite": "2.1.5"
|
||||||
},
|
},
|
||||||
"release-it": {
|
"release-it": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user