Skip to content
Discussion options

You must be logged in to vote

Ah, I think I actually spoke too soon. I forgot that we use these same kinds of imports in our Vite apps, so I tracked down our shared config and realized that the magic incantation for the config is slightly different. This works in Vitest too:

  css: {
    preprocessorOptions: {
      less: {
        plugins: [new NpmImportPlugin()],
      },
    },
  },

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@kgetz-arista
Comment options

@kgetz-arista
Comment options

Answer selected by kgetz-arista
@hi-ogawa
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants