Skip to content

The tailwindcss cannot be activated #116

Answered by meteorlxy
recoluan asked this question in Q&A
Discussion options

You must be logged in to vote

Are you using v1 config in v2? postcss is moved to bundlerConfig if you are using webpack:

// .vuepress/config.ts
import { defineUserConfig } from 'vuepress';
import type { WebpackBundlerOptions } from '@vuepress/bundler-webpack';
import type { DefaultThemeOptions } from '@vuepress/theme-default';
import { path } from '@vuepress/utils';

export default defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
  bundlerConfig: {
    postcss: {
      postcssOptions: {
        plugins: {
          tailwindcss: {},
          autoprefixer: {},
        },
      },
    },
  },
}

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@recoluan
Comment options

Answer selected by recoluan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@meteorlxy
Comment options

@yzx9
Comment options

@axtg
Comment options

Comment options

You must be logged in to vote
1 reply
@junelsolis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants