Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
golsch committed Jan 13, 2025
1 parent d21f77a commit 894391e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
22 changes: 22 additions & 0 deletions mir-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,28 @@
<arguments>--verbose --assetsDirectory=${template.assetsdir} --moduleDirectory=${basedir}</arguments>
</configuration>
</execution>
<execution>
<id>yarn-install-js</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<arguments>install</arguments>
<workingDirectory>src/main/js</workingDirectory>
</configuration>
</execution>
<execution>
<id>yarn-build-js</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<arguments>build</arguments>
<workingDirectory>src/main/js</workingDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
1 change: 1 addition & 0 deletions mir-module/src/main/js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
1 change: 1 addition & 0 deletions mir-module/src/main/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"build": "vite build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
Expand Down
8 changes: 4 additions & 4 deletions mir-module/src/main/js/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export default defineConfig({
'metadata': 'src/metadata.ts',
},
output: {
entryFileNames: '[name].js', // Jeder Entry Point bekommt eine eigene JavaScript-Datei
chunkFileNames: '[name].[hash].js', // Chunks werden mit Hashes benannt (falls vorhanden)
assetFileNames: '[name].[ext]', // Assets wie CSS, Bilder etc. bekommen ihren ursprünglichen Namen
dir: 'dist', // Alle Bundles werden im Verzeichnis 'dist' abgelegt
entryFileNames: '[name].js',
chunkFileNames: '[name].[hash].js',
assetFileNames: '[name].[ext]',
dir: '../../../target/classes/META-INF/resources/js/mir',
},
},
},
Expand Down

0 comments on commit 894391e

Please sign in to comment.