Decoupled import routine from final export to provide a shared instance of the PostCSS processor and for easier readability of file.
15 lines
313 B
JavaScript
15 lines
313 B
JavaScript
/**
|
|
* @file If available, returns the PostCSS processor with any plugins.
|
|
*/
|
|
|
|
try {
|
|
var { default: postcss } = await import('postcss');
|
|
let { default: autoprefixer } = await import('autoprefixer');
|
|
|
|
postcss = postcss([ autoprefixer ]);
|
|
} catch (err) {
|
|
postcss = null;
|
|
}
|
|
|
|
export default postcss;
|