csstools / postcss-write-svg

Write SVGs directly in CSS
http://jonathantneal.github.io/postcss-write-svg/
Creative Commons Zero v1.0 Universal
758 stars 27 forks source link

postcss not work in vue project #24

Open Moirafu opened 5 years ago

Moirafu commented 5 years ago

image image how can i fix it?

cismous commented 5 years ago

have a try, add style attribute lang="postcss" ?

Moirafu commented 5 years ago

have a try, add style attribute lang="postcss" ?

tried, not work for me

Trendymen commented 5 years ago

I have the same probelm,but i get the way to figure out, try to remove the "-" in @svg name.

wzc0x0 commented 5 years ago

Please use .postcssrc.js in your project root, and config this :

module.exports = {
    plugins: {
        "postcss-write-svg": {}
    }
};
phpcxy commented 5 years ago

I have the same probelm,but i get the way to figure out, try to remove the "-" in @svg name.

you saved me

originalix commented 5 years ago

I have the same probelm,but i get the way to figure out, try to remove the "-" in @svg name.

This worded for me. Thank you!👍

sanshuiwang commented 4 years ago

React less is not support. How fix?

KePingHub commented 4 years ago

I have the same probelm,but i get the way to figure out, try to remove the "-" in @svg name.

You're a genius!