windicss/windicss

'shortcuts' doesn't take effect with 'important' in configuration

hansonfang opened this issue · 0 comments

here is my configuration.

import { defineConfig } from "windicss/helpers";

export default defineConfig({
  important: ".windi",
  preflight: false,
  shortcuts: {
    btn: "py-2 px-4 font-semibold rounded-lg shadow-md",
  },
});

the shortcuts item doesn't take effect when configuring important at the same time.
As long as important was removed, shortcuts would perform normally.