我已经有了tailjs和daisyui的NextJS应用程序。我试图实施柏树
我已经有了tailjs和daisyui的NextJS应用程序。我试图实现柏树,但不能配置它,并且仅出现de html。
// package.json
"scripts": {
"tailwind-generate": " npx tailwindcss --input styles/globals.css --output styles/tailwind-generated.css"
}
// cypress/测试/button.cy.js
import { mount } from 'cypress/react'
import Button from '../../components/Inputs/Button'
describe('<Button >', () => {
it('mount', () => {
mount(<Button label={'Hola'} />, { stylesheet: '@/styles/tailwind-generated.css' })
})
})
,但什么都没有发生
I already have the Nextjs app with tailwind and daisyUI. I Trying to implement Cypress but can not configure it and it only appears de html.
// package.json
"scripts": {
"tailwind-generate": " npx tailwindcss --input styles/globals.css --output styles/tailwind-generated.css"
}
// cypress/tests/Button.cy.js
import { mount } from 'cypress/react'
import Button from '../../components/Inputs/Button'
describe('<Button >', () => {
it('mount', () => {
mount(<Button label={'Hola'} />, { stylesheet: '@/styles/tailwind-generated.css' })
})
})
but nothing happens
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于简单的预生成样式表,您应该可以通过导入它来使用它。
用于基于CDN的样式
For a simple pre-generated style sheet, you should be able to use it by just importing it.
For CDN based styles