如何打包使用CSS模块的React组件

时间:2019-02-12 08:30:38

标签: create-react-app web-component software-distribution

我已使用create-react-app创建组件。我必须打包该组件以将其集成到另一个不使用create-react-app的项目中。

在我的样式中,我通过以下方式创建文件

:local(.container){
  width:100%
}

现在如何提取组件,以便可以在另一个项目中使用它。

0 个答案:

没有答案
相关问题