tc

Results 9 comments of tc

Any updates to the issue? @LastLeaf

See https://github.com/wechat-miniprogram/mobx-miniprogram-bindings/blob/master/src/behavior.ts#L33C16-L33C16 现版本已支持 `storeBindings` 为 Array

When i remove the dynamic base in `publicPath.ts` and `index.html`. Some pwa assets load failed with some 404s like `http://localhost:3000/undefined/assets/Home.30461712.js`.

> When i remove the dynamic base in `publicPath.ts` and `index.html`. Some pwa assets load failed with some 404s like `http://localhost:3000/undefined/assets/Home.30461712.js`. it seems that the plugin does not work well...

> I tried v0.4.0. see my forked HEAD on branch main https://github.com/zhoujinfu/vite-plugin-dynamic-base/commit/d9e6cb1d7317f12032f54363c433e7eeec561ee4. I tested the examples update `vite-plugin-dynamic-base` to v0.4.0. And `pnpm build`. The output `index.html` like below: ```html Vite...

Maybe we should make dynamic_base work with pwa `base` which will using the vite base internally by default. see https://github.com/antfu/vite-plugin-pwa/blob/main/src/options.ts#L52 for more info.

```js /** * The precacheAndRoute() method efficiently caches and responds to * requests for URLs in the manifest. * See https://goo.gl/S9QRab */ workbox.precacheAndRoute([{ "url": "assets/About-legacy.dbc6d110.js", "revision": null }, { "url":...

I have got a workaround way to work with this two plugins: https://github.com/zhoujinfu/vite-plugin-dynamic-base/commit/89d4a9080e38f7436b07625c48f9d46f700fd03e after `pnpm build`, we start a local python server as a mock cdn server using `cd dist...

> What if `localhost:8080` is a variable like `"url": window.__dynamic_base__ +"/assets/polyfills-legacy.c9aac887.js"`,does it work No, i think it will not work, because the `sw.js` run in a worker thread without `window`.