Commit graph

16 commits

Author SHA1 Message Date
Xon
d79cad82a5 Force must be a bool 2024-08-19 11:36:12 +08:00
Xon
f8e68fa26c Force the dev server to execute during CI when WATCH_HOST is defined 2024-08-19 11:25:14 +08:00
Xon
d0c4466782 Test github action e2e tests 2024-08-19 11:21:55 +08:00
Xon
7a22a64110 Compile JS files, reduce build size as .mjs users should be doing their own tree-shaking/minifying 2024-08-19 10:19:18 +08:00
Xon
5a100e6d7f Prefix build flags with CHOICES_, setup canUseDom to be setable via enviromental variables 2024-08-19 09:06:37 +08:00
Xon
545d880e2c Fix wrong key for caching playwright data & reduce e2e test log spam 2024-08-17 21:07:32 +08:00
Xon
9e6f38213f Just use a static data.json instead of dynamic generating 2024-08-16 08:59:35 +08:00
Xon
8e807960fb Adjust minifying options (smaller bundle size) 2024-08-15 17:52:49 +08:00
Xon
4c18e493c8 Rename rollup config to more standard name 2024-08-15 17:52:23 +08:00
Xon
4ba9e4a1d1 Fix dev server running in the wrong context (output plugin vs build plugin) 2024-08-13 21:07:16 +08:00
Xon
c51a14fa5e Disable cjs builds by default 2024-08-12 02:37:12 +08:00
Xon
b69303e925 Generate bundles for fuse-full (choices.min.js, 20.36KB), fuse-basic (choices.search-basic.min.js, 19.31KB) & prefix search (choices.search-prefix.min.js, 15.27KB) 2024-08-08 16:45:13 +08:00
Xon
9108736808 Support enabling/disable fuse via build feature flag in favor of a simple prefix search
ie running;
npm run js:build-dev -- --environment SEARCH_FUSE:null
2024-08-08 16:00:20 +08:00
Xon
1550ccceea Adjust supported bundle formats, UMD format matches webpack and drops in size! 2024-08-07 18:31:15 +08:00
Xon
a2e602af32 Replace server.js for js:watch 2024-08-07 16:56:11 +08:00
Xon
243b958767 Switch from webpack to rollup, and setup build process to make umd/cjs/es builds. Remove d.ts.map files. rollup manages to save ~1kb off the gzip'ed bunddle size 2024-08-07 16:21:17 +08:00