New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vite-plugin-firebase

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-firebase

Brought to you by

latest
Source
npmnpm
Version
0.6.1
Version published
Maintainers
3
Created
Source

vite-plugin-firebase npm

Brought to you by
‹div›RIOTS ‹div›RIOTS

This plugin will start firebase emulators (by default hosting & functions) in-process when running vite dev server (vite serve).

Installation

npm install --save-dev vite-plugin-firebase

Usage

Add it to vite.config.js

import firebasePlugin from 'vite-plugin-firebase';

export default {
  plugins: [firebasePlugin({
    // mandatory firebase project id
    projectId: 'my-project-id',
    // project directory, i.e. where firebase.json is (defaults to `config.root`)
    root: path.resolve('somewhere'),
    // whether to materialize (write on disk) `.runtimeconfig.json` for functions emulator (defaults to `false`)
    materializeConfig: true,
    // emulator targets (defaults to `['hosting', 'functions']`)
    targets: ['hosting']
  })]
}

Caveats

This plugin uses internal firebase-tools APIs to load emulators in-process. May break upon firebase-tools releases, have been tested with 9.22 & 9.23

License

MIT

Copyright (c) 2021-present, ‹div›RIOTS

Keywords

vite

FAQs

Package last updated on 31 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts