Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outputs my-app.html despite already bundling it in index.html #1249

Closed
tony19 opened this issue Feb 26, 2017 · 0 comments
Closed

Outputs my-app.html despite already bundling it in index.html #1249

tony19 opened this issue Feb 26, 2017 · 0 comments

Comments

@tony19
Copy link
Contributor

tony19 commented Feb 26, 2017

Description

The --bundle flag bundles src/my-app.html in index.html, but it also copies src/my-app.html to the output folder. Interestingly, the master branch (3517653) does even more than 0.18.0-pre.10 and copies other already bundled files. Here's a demo repo: https://github.com/tony19-sandbox/polymer-build-issue-142

Versions & Environment

  • polymer-build: 0.8.1
  • polymer-cli: 0.18.0-pre.10
  • node: 7.6.0
  • Operating System: macOS Sierra 10.12

Steps to Reproduce

  1. Create application project with polymer-cli.
  2. CD into project directory.
  3. Create polymer.json with these contents:
{
  "builds": [
    {
      "bundle": true,
      "js": {
        "minify": true,
        "compile": true
      },
      "css": {
        "minify": true
      },
      "html": {
        "minify": true
      }
    }
  ]
}
  1. Run polymer build

Expected Results

  • index.html includes contents of src/my-app.html
  • Output directory does not contain src/my-app.html

Actual Results

  • index.html includes contents of src/my-app.html
  • Output directory contains src/my-app.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants