Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

my-app.html missing from bundled build folder

I have a situation where I am using polymer starter-kit template for my app. My polymer.json files looks like this:

    {
      "entrypoint": "index.html",
      "shell": "src/my-app.html",
      "fragments": [

      ],
      "sourceGlobs": [
       "src/**/*",
       "images/**/*",
       "bower.json"
      ],
      "includeDependencies": [
        "manifest.json",
        "bower_components/webcomponentsjs/webcomponents-lite.min.js"
      ]
    }

When I build using polymer-cli command - 'polymer build', the bundled folder seems to miss the shell file 'my-app.html'.

If I remove

"shell": "src/my-app.html",

from the polymer.json file, the my-app.html file gets created in the bundled/src folder as it should but then the index.html file goes missing.

I am using the polymer-starter-kit template and adding files to it. I can't figure out why my-app.html or index.html goes missing depending on how polymer.json is configured.

Can you please tell me what's going wrong here?

Thank you.

like image 856
sandav Avatar asked Nov 14 '16 20:11

sandav


1 Answers

I had the same problem with you yesterday and I added "/" at front of urls in polymer.json.

{
  "entrypoint": "index.html",
  "shell": "/src/my-app.html",
  "fragments": [
    "/src/my-app.html",
    "/src/my-home.html",
    "/src/my-shop.html"
  ],
  "sourceGlobs": [
   "src/**",
   "src/**/*",
   "src/structure/**/*",
   "images/**/*",
   "bower.json"
  ],
  "includeDependencies": [
    "manifest.json",
    "bower_components/webcomponentsjs/webcomponents-lite.min.js"
  ]
}

I only added "/" at shell & fragments part and it worked.

I hope this can help.

Cheers.

like image 57
pratiwis Avatar answered Sep 28 '22 04:09

pratiwis