Changeset 36878


Ignore:
Timestamp:
2022-11-02T15:36:27+13:00 (5 weeks ago)
Author:
cstephen
Message:

Fix OCR for production deployment

Location:
gs3-installations/atea/trunk/interfaces/atea
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/atea/trunk/interfaces/atea/ocr/vite.config.js

    r36874 r36878  
    66// https://vitejs.dev/config/
    77export default defineConfig({
    8     base: process.env.NODE_ENV === 'production'
    9         ? '/greenstone3/interfaces/atea/ocr/dist/'
    10         : '/',
     8    base: "/greenstone3/interfaces/atea/ocr/dist/",
    119    plugins: [
    1210        vue()
     
    2018        rollupOptions: {
    2119            output: {
     20                assetFileNames: "assets/[name][extname]",
    2221                entryFileNames: "[name].js"
    2322            },
     
    3130            }
    3231        }
    33       }
     32    }
    3433})
  • gs3-installations/atea/trunk/interfaces/atea/transform/pages/ocr.xsl

    r35997 r36878  
    4242    <xsl:template name="atea-ocr">
    4343        <link rel="icon" href="interfaces/{$interface_name}/ocr/dist/favicon.png" />
    44         <link href="interfaces/{$interface_name}/ocr/dist/css/app.css" rel="preload" as="style" />
    45         <link href="interfaces/{$interface_name}/ocr/dist/js/app.js" rel="preload" as="script" />
    46         <link href="interfaces/{$interface_name}/ocr/dist/js/chunk-vendors.js" rel="preload" as="script" />
    47         <link href="interfaces/{$interface_name}/ocr/dist/css/app.css" rel="stylesheet" />
     44        <link href="interfaces/{$interface_name}/ocr/dist/assets/index.css" rel="preload" as="style" />
     45        <link href="interfaces/{$interface_name}/ocr/dist/index.js" rel="preload" as="script" />
     46        <link href="interfaces/{$interface_name}/ocr/dist/assets/index.css" rel="stylesheet" />
    4847
    4948        <gsf:style>
     
    102101
    103102        <gslib:langfrag name="atea.ocr" />
    104         <gsf:script src="interfaces/{$interface_name}/ocr/dist/js/chunk-vendors.js"></gsf:script>
    105         <gsf:script src="interfaces/{$interface_name}/ocr/dist/js/app.js"></gsf:script>
     103        <gsf:script type="module" src="interfaces/{$interface_name}/ocr/dist/index.js"></gsf:script>
    106104    </xsl:template>
    107105
Note: See TracChangeset for help on using the changeset viewer.