Skip to content

Commit 5ca2716

Browse files
committed
genes sample updated
1 parent b1ca69d commit 5ca2716

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
npm link vite-plugin-openfl
4141
npm install
4242
npm run build
43-
# - name: Build samples/genes
44-
# working-directory: samples/genes
45-
# run: |
46-
# npm link vite-plugin-openfl
47-
# npm install
48-
# npm run build
43+
- name: Build samples/genes
44+
working-directory: samples/genes
45+
run: |
46+
npm link vite-plugin-openfl
47+
npm install
48+
npm run build
4949
- name: Build samples/rollup
5050
working-directory: samples/rollup
5151
run: |

samples/genes/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "vite-plugin-openfl-genes-sample",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Sample that demonstrates how to use Genes with vite-plugin-openfl",
55
"repository": "https://github.com/feathersui/vite-plugin-openfl.git",
66
"devDependencies": {
7-
"vite": "^3.1.0",
8-
"vite-plugin-openfl": "^1.0.0"
7+
"vite": "^6.3.0",
8+
"vite-plugin-openfl": "^2.0.0"
99
},
1010
"scripts": {
1111
"start": "vite",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ import openflPlugin from "vite-plugin-openfl";
33

44
export default defineConfig({
55
plugins: [openflPlugin()],
6+
build: {
7+
chunkSizeWarningLimit: 2000,
8+
},
69
});

templates/genes/html5/output.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import {System} from "./lime/system/System.js";
2-
::SOURCE_FILE::
1+
import {System} from "./lime/system/System.js";::SOURCE_FILE::
32

43
window.lime = window.lime || {};
54
window.lime.embed = window.lime.embed || System.embed;
65

76
::if embeddedLibraries::(function(window){::foreach (embeddedLibraries)::
8-
::__current__::::end::})(window)::end::
7+
::__current__::::end::}).apply(window, [window])::end::

0 commit comments

Comments
 (0)