You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
📖 Documentation & guides 👌 Zero-Config: sensible built-in default configs for common use cases 🔩 Extensible: expose the full ability to customize the behavior of the plugin 🦾 Type Strong: written in TypeScript 🔌 Offline Support: generate service worker with offline support (via Workbox) ⚡ Fully tree shakable: auto inject Web App Manifest 💬 Prompt for new content: built-in support for Vanilla
vite のLibrary Modeを使うことで簡単にパッケージが作ることができます。 本記事では加えて、TypeScript への対応方法も説明していきます。 vite の設定 まずは、vite.config.js から見ていきましょう。 const path = require("path"); const { defineConfig } = require("vite"); module.exports = defineConfig({ build: { lib: { entry: path.resolve(__dirname, "lib/main.js"), name: "MyLib", fileName: (format) => `my-lib.${format}.js`, }, }, }); build.lib がライブラリモードのオプションになります。説明すると、 entr
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く