How do I pass multiple entry_points to polymer transformer in pubspec.yaml?

前端 未结 1 1571
南笙
南笙 2020-12-20 21:14

Now that pub build supports building Polymer apps, how do I pass multiple entry_points to the Polymer transformer in my pubspec.yaml file?

When I try to

相关标签:
1条回答
  • 2020-12-20 21:44

    In YAML, a sequence is created by wrapping a comma separated list in square brackets [ 0, 1, 2, ] or by putting each entry on a line by itself prepended by a hyphen - So your example would look like this:

    transformers:
    - polymer:
        entry_points: [ web/index.html, web/reports.html ]
    

    Or this:

    transformers:
    - polymer:
        entry_points: 
          - web/index.html
          - web/reports.html
    
    0 讨论(0)
提交回复
热议问题