Closed empz closed 7 years ago
Hi, thanks for your issue! SW works only in production, because it caches build results. I tested manifest.json only in production build and probably currently it will not works correctly in dev mode, because there is no need in manifest.json in development + it will be replaced soon with FaviconsWebpackPlugin. I'm currently working on big update in which your issue will be fixed.
I figured. Thanks!
Any plans on doing a version with MobX instead of Redux? Or at least without Redux?
I'd like to use these starter but with TypeScript and MobX. A lot of things to modify and I'm no expert in these technologies so I'm already having errors all over the place.
Probably, Redux will be used in a future, but there will be many improvements: lazy loading, styled-component + SSR.
Also, starter is based on Semantic-UI(hah, probably it's obvious) which is not 100% good choice for performance-first apps (semantic uses full lodash bundle as dependency + minified styles are 548 kb without gzip), so lazy loading is a requirement. If your project isn't so big, I recommend you to use Preact instead of React. Preact is much smaller in size.
Also, some notes: if you're planning to use SSR, than maybe you need to select another UI framework, because (as I understood after using Semantic in my projects) Semantic doesn't support SSR with inline styles.
Thanks for your quick reply.
Actually I don't want or need SSR.
I still like your starter since it uses SUI, which I love, but also a solid structure with good performance and even a testing framework. But I do not like Redux and I prefer Typescript over babel.
Personally, I don't like TypeScript, but maybe I need to think about an alternative for Redux in this project, thanks for your idea) Maybe a custom CLI generator (like CRA or ng utils) or a yeoman generator will be a good solution.
Well, that would be amazing!
@Metnew I know you said you don't like TypeScript but it's getting a LOT of momentum lately, and IDE support is getting VERY nice! What say you? :) http://www.typescriptlang.org/docs/handbook/migrating-from-javascript.html
Cloned the repo, did
yarn
, thenyarn run dev
andyarn run db
and while the project loads, it throws an errorManifest: Line: 1, column: 1, Unexpected token.
in Chrome. When going to the Application tab in devtools and clicking inmanifest.json
it shows the following instead of the manifest.Also, the service worker doesn't seem to be running. Or does it only run in production mode?