File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,6 @@ rm -rf ./py/* || true
2121python -m build --wheel --sdist ./MapManagerCore/ --outdir ./py/
2222
2323WHEEL_FILE=$( basename ./py/* .whl)
24- echo -e " /* Generated file */ \nimport pyWheelPath from \" ../py/$WHEEL_FILE \" ;\nexport {pyWheelPath};" > ./src/wheel_info.js
24+ echo -e " /* Generated file */\nimport pyWheelPath from \" ../py/$WHEEL_FILE \" ;\nexport { pyWheelPath };" > ./src/wheel_info.js
2525
2626rm -rf ./py/* .tar.gz
Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ export default defineConfig({
77 base : "/WebMapManager/" ,
88 build : {
99 outDir : "./build" ,
10+ rollupOptions : {
11+ output : {
12+ assetFileNames : ( file ) => {
13+ if ( file . names . some ( ( x ) => x . endsWith ( ".whl" ) ) ) {
14+ return "assets/[name].[ext]" ;
15+ }
16+ return "assets/[name]-[hash].[ext]" ;
17+ } ,
18+ } ,
19+ } ,
1020 } ,
1121 plugins : [
1222 react ( {
You can’t perform that action at this time.
0 commit comments