react-component-gulp-tasks
react-component-gulp-tasks copied to clipboard
How to include node_modules css files
How do you include the these css files into component as dependencies? For past couple days, I was trying to create a react component which based on couple of other react components as well, such as fix-data-table. I couldn't find a way to require css file into project. Am I missing anything here? Thanks so much for the help.
Hi, @zhx828 I write a react-component-tools base on this repo and replace Browserify with webpack. you can require css on webpack like this.
import 'bootstrap/dist/css/bootstrap.css';
or in css:
import "~bootstrap/dist/css/bootstrap.css"
@luqin Awesome. Thanks. I will definitely take a look.