Grunt mincss and concat not add shim-shadowdom

64 views
Skip to first unread message

ignacio...@gmail.com

unread,
Sep 29, 2014, 6:15:13 AM9/29/14
to polym...@googlegroups.com
Hi

I have the following in my index.html

 <!-- build:css(.tmp) styles/my-style.css -->
    <link rel="stylesheet" type="text/css" href="styles/a.css" shim-shadowdom>
    <link rel="stylesheet" type="text/css" href="styles/b.css" shim-shadowdom>
    <link rel="stylesheet" type="text/css" href="styles/c.css" shim-shadowdom>
    <!-- endbuild -->

But the final link in the mincss file is 

    <link rel="stylesheet" type="text/css" href="styles/my-style.css" >

and the shim-shadowdom is missed.

Any idea ?

Regards
Ignacio

Rob Dodson

unread,
Sep 29, 2014, 3:10:45 PM9/29/14
to Ignacio Manzano, polymer-dev
It sounds like the usemin task might need to be updated to allow you to pass attributes to the stylesheet (if it doesn't already do this)

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/7552cbd8-b9d0-4081-9594-ab173eb11005%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ignacio...@gmail.com

unread,
Oct 6, 2014, 2:54:28 PM10/6/14
to polym...@googlegroups.com, ignacio...@gmail.com
Hi,

I was able to fix it doing the following in the usemin statement

blockReplacements: {
              vulcanized: function (block) {
                  return '<link rel="import" href="' + block.dest + '">';
              },css: function (block) {
                    return '<link rel="stylesheet" href="' + block.dest + ' shim-shadowdom">';
                }
        }



Best,
Ignacio

Rob Dodson

unread,
Oct 6, 2014, 6:13:26 PM10/6/14
to Ignacio Manzano, polymer-dev
Reply all
Reply to author
Forward
0 new messages