mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
web/vite: exclude .md files from i18n chunks
Some checks are pending
Run service tests / test service functionality (push) Waiting to run
Run service tests / test service: ${{ matrix.service }} (push) Blocked by required conditions
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
Some checks are pending
Run service tests / test service functionality (push) Waiting to run
Run service tests / test service: ${{ matrix.service }} (push) Blocked by required conditions
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
This commit is contained in:
parent
d2b1a6553b
commit
503514d98e
|
@ -43,7 +43,6 @@ const exposeLibAV: PluginOption = (() => {
|
||||||
|
|
||||||
for (const module of modules) {
|
for (const module of modules) {
|
||||||
const distFolder = join(IMPUT_MODULE_DIR, module, 'dist/');
|
const distFolder = join(IMPUT_MODULE_DIR, module, 'dist/');
|
||||||
console.log(distFolder);
|
|
||||||
await cp(distFolder, assets, { recursive: true });
|
await cp(distFolder, assets, { recursive: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,7 +71,7 @@ export default defineConfig({
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
manualChunks: (id) => {
|
manualChunks: (id) => {
|
||||||
if (id.includes('/web/i18n')) {
|
if (id.includes('/web/i18n') && id.endsWith('.json')) {
|
||||||
const lang = id.split('/web/i18n/')?.[1].split('/')?.[0];
|
const lang = id.split('/web/i18n/')?.[1].split('/')?.[0];
|
||||||
if (lang) {
|
if (lang) {
|
||||||
return `i18n_${lang}`;
|
return `i18n_${lang}`;
|
||||||
|
|
Loading…
Reference in a new issue