一覧へ戻る
yhdgms1/malinajs-unplugin(新しいタブで開きます)
主要言語: TypeScript
Malina.js plugin for Vite, Rollup, ESBuild & Webpack
- star 数
- 7
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2023/05/10
主要言語: TypeScript
Malina.js plugin for Vite, Rollup, ESBuild & Webpack
//vite.config.ts import { defineConfig } from "vite"; import { vitePlugin as malinaPlugin } from "malinajs-unplugin"; export default defineConfig(({ mode }) => ({ plugins: [ malinaPlugin({ debugLabel: mode === "development", }), ], }));
//webpack.config.js const { webpackPlugin: malinaPlugin } = require("malinajs-unplugin"); module.exports = { plugins: [malinaPlugin()], };
Be careful when using with Vite: the html extension will not work
As stated in the malinajs documentation, you can import 'malinajs' as 'malinajs/runtime'. Using unplugin, you cannot do this. Read more in the issue