yandeu / phaser-project-template Goto Github PK
View Code? Open in Web Editor NEW🕹️ Phaser 3 - Starter Template with TypeScript and webpack.
License: MIT License
🕹️ Phaser 3 - Starter Template with TypeScript and webpack.
License: MIT License
Getting the error in the tsconfig.json:
Cannot write file 'c:/Users/kg/code/phaser-template/pwa/sw.js' because it would overwrite input file.
Cannot write file 'c:/Users/kg/code/phaser-template/pwa/sw.js' because it would overwrite input file.
Cannot write file 'c:/Users/kg/code/phaser-template/pwa/sw.js' because it would overwrite input file.
Cannot write file 'c:/Users/kg/code/phaser-template/pwa/sw.js' because it would overwrite input file.
Cannot write file 'c:/Users/kg/code/phaser-template/pwa/sw.js' because it would overwrite input file.
Had to add
"exclude": ["pwa", "webpack"]
to the tsconfig.
First of all thanks a lot for this great template!
After pulling the latest version I receive following error when running the template:
× 「wdm」: TypeError: Object.entries is not a function
at generateMetadataForAssets (C:\WorkspaceTest\phaser-project-template\node_modules\workbox-webpack-plugin\build\lib\get-manifest-entries-from-compilation.js:171:22)
at getManifestEntriesFromCompilation (C:\WorkspaceTest\phaser-project-template\node_modules\workbox-webpack-plugin\build\lib\get-manifest-entries-from-compilation.js:232:25)
at C:\WorkspaceTest\phaser-project-template\node_modules\workbox-webpack-plugin\build\inject-manifest.js:96:21
at next (native)
at asyncGeneratorStep (C:\WorkspaceTest\phaser-project-template\node_modules\workbox-webpack-plugin\node_modules@babel\runtime\helpers\asyncToGenerator.js:3:24)
at _next (C:\WorkspaceTest\phaser-project-template\node_modules\workbox-webpack-plugin\node_modules@babel\runtime\helpers\asyncToGenerator.js:25:9)
After commenting the InjectManifest plugin in webpack.common.js I was able to run the template.
Hi!,
After "npm start" it says:
WARNING in vendors.bundle.js is 18.8 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
Adding "maximumFileSizeToCacheInBytes: 2010241024," at "InjectManifest" section, in webpack/webpack.common.js solves the issue.. its right?
new InjectManifest({
swSrc: path.resolve(__dirname, '../pwa/sw.js'),
maximumFileSizeToCacheInBytes: 20*1024*1024,
})
Thanks!
Nevermind. I don't know why this came to you. It's not even for this repo...
When running npm start
, the watcher does notice changes and reloads the client. However, changes are not immediately seen in the browser. The browser version is always 1 iteration behind. If the browser is manually reloaded, the latest version is seen.
How can I make the HMR show the latest version?
Hi, this is more of a question than an issue - the .prettierrc file contains "@yandeu/prettier-config" - I'd like to change the config to include semi-colons at the end of lines, how can I do that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.