source: frontend/node_modules/workbox-core/utils/welcome.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 Copyright 2019 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8import { logger } from '../_private/logger.js';
9import '../_version.js';
10// A WorkboxCore instance must be exported before we can use the logger.
11// This is so it can get the current log level.
12if (process.env.NODE_ENV !== 'production') {
13 const padding = ' ';
14 logger.groupCollapsed('Welcome to Workbox!');
15 logger.log(`You are currently using a development build. ` +
16 `By default this will switch to prod builds when not on localhost. ` +
17 `You can force this with workbox.setConfig({debug: true|false}).`);
18 logger.log(`📖 Read the guides and documentation\n` +
19 `${padding}https://developers.google.com/web/tools/workbox/`);
20 logger.log(`❓ Use the [workbox] tag on Stack Overflow to ask questions\n` +
21 `${padding}https://stackoverflow.com/questions/ask?tags=workbox`);
22 logger.log(`🐛 Found a bug? Report it on GitHub\n` +
23 `${padding}https://github.com/GoogleChrome/workbox/issues/new`);
24 logger.groupEnd();
25}
Note: See TracBrowser for help on using the repository browser.