sampl / firefly

Web app boilerplate for beginners based on Firebase and React 🔥
http://getfirefly.org/
234 stars 42 forks source link

Import individual Firebase SDK components #129

Closed sampl closed 6 years ago

sampl commented 6 years ago

Console warning:

It looks like you're using the development build of the Firebase JS SDK. When deploying Firebase apps to production, it is advisable to only import the individual SDK components you intend to use.

For the module builds, these are available in the following manner (replace with the name of a component - i.e. auth, database, etc):

CommonJS Modules: const firebase = require('firebase/app'); require('firebase/');

ES Modules: import firebase from 'firebase/app'; import 'firebase/';

sampl commented 6 years ago

https://stackoverflow.com/questions/50707211/warning-it-looks-like-youre-using-the-development-build-of-the-firebase-js-sdk

sampl commented 6 years ago

done https://github.com/sampl/firefly/commit/899e4a034e7ef87d95f3d7c2a41ce187d7be2698