You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,6 +24,8 @@ This template has been updated for:
24
24
|`npm install`| Install project dependencies |
25
25
|`npm run dev`| Launch a development web server |
26
26
|`npm run build`| Create a production build in the `dist` folder |
27
+
|`npm run dev-nolog`| Launch a development web server without sending anonymous data (see "About log.js" below) |
28
+
|`npm run build-nolog`| Create a production build in the `dist` folder without sending anonymous data (see "About log.js" below) |
27
29
28
30
## Writing Code
29
31
@@ -95,6 +97,52 @@ You can write modern ES6+ JavaScript and Babel will transpile it to a version of
95
97
96
98
If you want to customize your build, such as adding a new webpack loader or plugin (i.e. for loading CSS or fonts), you can modify the `webpack/config.js` file for cross-project changes, or you can modify and/or create new configuration files and target them in specific npm tasks inside of `package.json`. Please see the [Webpack documentation](https://webpack.js.org/) for more information.
97
99
100
+
## About log.js
101
+
102
+
If you inspect our node scripts you will see there is a file called `log.js`. This file makes a single silent API call to a domain called `gryzor.co`. This domain is owned by Phaser Studio Inc. The domain name is a homage to one of our favorite retro games.
103
+
104
+
We send the following 3 pieces of data to this API: The name of the template being used (vue, react, etc). If the build was 'dev' or 'prod' and finally the version of Phaser being used.
105
+
106
+
At no point is any personal data collected or sent. We don't know about your project files, device, browser or anything else. Feel free to inspect the `log.js` file to confirm this.
107
+
108
+
Why do we do this? Because being open source means we have no visible metrics about which of our templates are being used. We work hard to maintain a large and diverse set of templates for Phaser developers and this is our small anonymous way to determine if that work is actually paying off, or not. In short, it helps us ensure we're building the tools for you.
109
+
110
+
However, if you don't want to send any data, you can use these commands instead:
111
+
112
+
Dev:
113
+
114
+
```bash
115
+
npm run dev-nolog
116
+
```
117
+
118
+
Build:
119
+
120
+
```bash
121
+
npm run build-nolog
122
+
```
123
+
124
+
Or, to disable the log entirely, simply delete the file `log.js` and remove the call to it in the `scripts` section of `package.json`:
125
+
126
+
Before:
127
+
128
+
```json
129
+
"scripts": {
130
+
"dev": "node log.js dev && vite --config vite/config.dev.mjs",
131
+
"build": "node log.js build && vite build --config vite/config.prod.mjs"
Either of these will stop `log.js` from running. If you do decide to do this, please could you at least join our Discord and tell us which template you're using! Or send us a quick email. Either will be super-helpful, thank you.
145
+
98
146
## Join the Phaser Community!
99
147
100
148
We love to see what developers like you create with Phaser! It really motivates us to keep improving. So please join our community and show-off your work 😄
0 commit comments