小编Poo*_*han的帖子

在浏览器中加载应用程序时 Firebase JS SDK 警告(angular v5)

当应用程序在浏览器中加载时,它会发出以下警告。所以无法为 prod ( ng build --aot --prod)创建构建

    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 <PACKAGE> with the name of a component - i.e. auth, database, etc):

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

ES Modules:
import firebase from 'firebase/app';
import 'firebase/<PACKAGE>'; …
Run Code Online (Sandbox Code Playgroud)

firebase angularfire angular5

6
推荐指数
1
解决办法
3725
查看次数

标签 统计

angular5 ×1

angularfire ×1

firebase ×1