PostCSS
mountaineer.js_compiler.postcss.PostCSSBundler
PostCSSBundler(tmp_dir=None)
Bases: ClientBuilderBase
Support PostCSS processing for CSS files.
- Assumes postcss-cli is installed in the primary project's package root (ie. the ci_webapp/views/node_modules directory)
- Assumes that the css file under consideration has a root postcss.config.js file within its own view path
global_state
instance-attribute
global_state = None
init_state
async
init_state(global_state)
start_build
async
start_build()
finish_build
async
finish_build()
handle_file
async
handle_file(file_path, controller, metadata)
process_css
async
process_css(css_path)
Process a CSS file using PostCSS and output the transformed contents.
get_style_output_name
get_style_output_name(original_stylesheet_path)
Given a path to an original stylesheet, return the name of the compiled css file
original_stylesheet_path: "path/to/styles.scss" output: "path_to_styles.css"
postcss_is_installed
postcss_is_installed(view_root_path)