Files
OfficialSite/build/utils/postcss.js
Chauncey McAskill 834c6165b0 Refactor postcss.js
Decoupled import routine from final export to provide a shared instance of the PostCSS processor and for easier readability of file.
2021-09-18 01:16:44 -04:00

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;