Skip to content

Commit 4f2542c

Browse files
committed
fix vue-i18n in prod
1 parent a8dc8a2 commit 4f2542c

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY yarn.lock .
77

88
RUN yarn install --ignore-optional
99
COPY . .
10-
RUN yarn build -l silent
10+
RUN yarn build
1111

1212
FROM nginx:mainline-alpine
1313
COPY --from=builder /app/dist /usr/share/nginx/html

docker/Dockerfile_multiarch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY yarn.lock .
77

88
RUN yarn install --ignore-optional
99
COPY . .
10-
RUN yarn build -l silent
10+
RUN yarn build
1111

1212
FROM nginx:mainline-alpine
1313
COPY --from=builder /app/dist /usr/share/nginx/html

scripts/build_browser_extensions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PACKAGE_VERSION=$(cat package.json \
77
| sed 's/[",]//g' \
88
| tr -d '[[:space:]]')
99

10-
yarn build -l silent
10+
yarn build
1111

1212
rm -rf artifacts/*.zip
1313

vite.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { defineConfig } from 'vite'
22
import vue from '@vitejs/plugin-vue'
33
import { quasar, transformAssetUrls } from '@quasar/vite-plugin'
44
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
5+
import { resolve, dirname } from 'node:path'
6+
import { fileURLToPath } from 'url'
57

68
function removeDataTestid (node) {
79
if (node.type === 1 /* NodeTypes.ELEMENT */) {
@@ -22,7 +24,10 @@ export default defineConfig({
2224
}
2325
}),
2426
quasar(),
25-
VueI18nPlugin()
27+
VueI18nPlugin({
28+
include: resolve(dirname(fileURLToPath(import.meta.url)), './src/locales/**'),
29+
strictMessage: false
30+
})
2631
],
2732
build: {
2833
sourcemap: true

0 commit comments

Comments
 (0)