yeoman / generator-polymer

Scaffold out a Polymer project
http://polymer-project.org
926 stars 149 forks source link

precache.json 404 #190

Closed Shuunen closed 9 years ago

Shuunen commented 9 years ago

Hi,

I tested "gulp serve" and it worked well, then just "gulp" to build app into "dist" folder,

Then I went to dist and started here a simple "http-server" to see the result on http://localhost:8080/

The polymer app works but trigger into the console :

GET http://localhost:8080/precache.json 404 (Not Found) Skipping precaching: unable to load precache.json

Should "precache.json" be copied from "app" folder when building ?

Ty

robdodson commented 9 years ago

Hey @Shuunen, the generator is just cloning Polymer Starter Kit so you will want to raise the issue over there. I'm going to update the readme to make that more obvious.

Shuunen commented 9 years ago

ok :+1:

chuckh commented 9 years ago

@Shuunen you can try gulp serve:dist. Which will build and serve using dist.

Shuunen commented 9 years ago

this is weird because "gulp serve:dist" actually build but doesn't serve, it just give the same console output as if I typed "gulp"

chuckh commented 9 years ago

@Shuunen you should update to the latest Yeoman Generator for Polymer version 1.0.4 which includes the latest Polymer Starter Kit version 1.0.2. This may fix your problem.

You can update by going do this npm update generator-polymer -g

Then create a new app by doing:

If you still have this problem, open a issue at https://github.com/PolymerElements/polymer-starter-kit/issues and we can continue the dialog there.