mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 21:41:26 +08:00
DEV: Introduce postcss for autoprefix and light-dark()
polyfill (#31393)
Introduces PostCSS at the end of our CSS compilation pipeline. For now, just adds autoprefixer and light-dark polyfill.
This commit is contained in:
@ -185,5 +185,15 @@ class DiscourseJsProcessor
|
||||
def terser(tree, opts)
|
||||
self.class.v8_call("minify", tree, opts, fetch_result_call: "getMinifyResult")
|
||||
end
|
||||
|
||||
def post_css(css:, map:, source_map_file:)
|
||||
self.class.v8_call(
|
||||
"postCss",
|
||||
css,
|
||||
map,
|
||||
source_map_file,
|
||||
fetch_result_call: "getPostCssResult",
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user