Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

polymer.json css prefixer option #1283

Closed jay8t6 closed 2 years ago

jay8t6 commented 7 years ago

can we add css prefixer option to build config?

"css": {"minify": true, "prefix": true}
stramel commented 7 years ago

I have another request opened in polymer-cli which seemed like postCSS might be the way to go.

https://github.com/Polymer/polymer-cli/issues/725

ShaggyDude commented 7 years ago

How is this not a thing? Is there a way to do this in the mean time?

stramel commented 7 years ago

@shaggydude right now the way to do it is use the custom-build gulp file.

ShaggyDude commented 7 years ago

Can you point me to an example gulp file? I tried polymer-starter-kit-custom-build but it doesn't work for me.

jay8t6 commented 7 years ago

@ShaggyDude you can check this code... https://github.com/Hackception/generator-polymer-init-custom-build/blob/master/generators/app/gulpfile.js#L64

jay8t6 commented 7 years ago

@ShaggyDude It should. Just make sure to include those new dependencies in your package.json.

Include the browserlist file as well. https://github.com/Hackception/generator-polymer-init-custom-build/blob/master/generators/app/browserslist

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically closed after being marked stale. If you're still facing this problem with the above solution, please comment and we'll reopen!