1.3.0 • Published 4 years ago

razzle-plugin-firebase v1.3.0

Weekly downloads
28
License
MIT
Repository
github
Last release
4 years ago

razzle-plugin-firebase

A Razzle plugin for seting up firebase (with local emulation!)

See example for an example!

Usage

Install the plugin:

# using npm
npm install --dev razzle-plugin-firebase

# yarn
npm add --dev razzle-plugin-firebase

Add configuration to razzle.config.js:

// razzle.config.js file

module.exports = {
  plugins: [
    'firebase'
  ],
};

Configuration

The plugin allows the following option keys:

  • pkg: Project's package.json file (default: package.json)
  • firebase: Project's firebase.json file (default: firebase.json)
  • target: In the case hostings on the firebase file is an array, the hosting target value
  • exec: Use exec instead of spawn (default: false)
  • start: Firebase command to run in order to start emulators, if necessary an array can be passed to set additional arguments, eg: ['emulators:start', '--only', 'hosting,functions,firestore'] (default: emulators:start)
  • serverIndex: Server output filename (default: index.js)
// razzle.config.js file

module.exports = {
  plugins: [
    {
      name: 'firebase',
      options: {
        target: 'app',
        start: 'serve',
      },
    }
  ],
};
1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago