Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: modern.js module 按照官网示例添加tailwindcss和storybook后不生效 #5732

Open
CraxGrix opened this issue May 11, 2024 · 1 comment
Labels
bug Something isn't working Modern.js Module

Comments

@CraxGrix
Copy link

Version

System:
    OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400F
    Memory: 43.36 GB / 62.63 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Browsers:
    Chrome: 124.0.6367.60
  npmPackages:
    @modern-js/eslint-config: 2.49.3 => 2.49.3 
    @modern-js/module-tools: 2.49.3 => 2.49.3 
    @modern-js/plugin-tailwindcss: 2.49.3 => 2.49.3 
    @modern-js/storybook: 2.49.3 => 2.49.3

Details

已按照文档步骤将Storybook和TailwindCSS添加到同一个项目中,但是在组件内使用TailwindCSS的class后并未按期于Storybook中显示。经检查dist文件内含有treeshaking后的css类

Reproduce link

None

Reproduce Steps

  1. npm run storybook
  2. npm run build:watch
  3. stories内的文件引入打包后的dist文件
@CraxGrix CraxGrix added the bug Something isn't working label May 11, 2024
@JeeSoonng
Copy link

我也遇到了同样的问题,请问有解决办法了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Modern.js Module
Projects
None yet
Development

No branches or pull requests

3 participants