我需要将提供的 CSSstyled-components
输出到我的public/css
目录中的物理 CSS 文件。
export const MyComp = styled.div`
width: 100%;
height: 500px;
`
与所有其他样式组件的样式一起,上述组件将输出到public/css/styled.css
:
.Components_MyComp__a39t9ag0248f {
width: 100%;
height: 500px;
}
我在用:
"webpack": "^2.6.1",
"styled-components": "^2.0.1",