postcss.config.js 628 B

123456789101112131415161718192021
  1. /* -----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. // Since postcss 8.4.0, parsing the CSS is done only if some plugin are defined
  6. // As we only want to check that the CSS files can be processed by postcss
  7. // this adds a no-op plugin.
  8. const plugin = () => {
  9. return {
  10. postcssPlugin: 'no-op',
  11. Once(root) {
  12. // no-op plugin
  13. }
  14. };
  15. };
  16. plugin.postcss = true;
  17. module.exports = {
  18. plugins: [plugin]
  19. };