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

CSS 丢失问题 #529

Closed
fjc0k opened this issue May 30, 2018 · 2 comments
Closed

CSS 丢失问题 #529

fjc0k opened this issue May 30, 2018 · 2 comments

Comments

@fjc0k
Copy link
Contributor

fjc0k commented May 30, 2018

Bug report

Version

0.10.0

Steps to reproduce

  1. git clone https://github.com/fjc0k/ant-design-icons.git
  2. yarn & yarn docs:dev
  3. 打开 http://localhost:8080/ant-design-icons/
  4. 打开 https://fjc0k.github.io/ant-design-icons/

What is expected?

第3步和第4步看到的界面应该一致。

What is actually happening?

界面不一致。

Other relevant information

  • Your OS: win8
  • Node.js version: 9.10.0
  • Browser version: chrome 66
  • Is this a global or local install? local
  • Which package manager did you use for the install? yarn
@fjc0k
Copy link
Contributor Author

fjc0k commented May 30, 2018

另:

打开 docs/.vuepress/enhanceApp.js,注释掉 require('../../dist/anticons.css');,并取消注释 // import '../../dist/anticons.css',然后 yarn docs:build,会发现 ../../dist/anticons.css 并没有被打包进去。

我在 yarn docs:dev 模式下发现,../../dist/anticons.css 被替换成了 ./dist/anticons.css,不明所以。

@fjc0k
Copy link
Contributor Author

fjc0k commented Jun 6, 2018

暂:

  • 用 require 导入外部 CSS
  • 不再 .md 文档内定义 <style />

@fjc0k fjc0k closed this as completed Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant