I want to add a date-date element ( https://github.com/zippyui/react-date-picker ). It says that I need to add lines
require('react-date-picker/index.css'); var DatePicker = require('react-date-picker');
And using meteorhacks: npm and browsify, the module works for me.
/server/declarations.js
DatePicker = Meteor.npmRequire('react-date-picker');
/lib/app.browserify.js
DatePicker = require('react-date-picker');
But how can I get a CSS file that styles the module to work? I don't know where to put require('react-date-picker/index.css') without throwing a syntax error. And I cannot assign it to a variable, so what should I do?
npm reactjs meteor browserify
theswooner
source share