I am using the froala editor in meteor and react. The froala editor requires you to import css files. https://www.froala.com/wysiwyg-editor/docs/framework-plugins/react When i import for example
import 'froala-editor/css/froala_style.min.css';
The server crashes and gives me an error
SyntaxError: Unexpected token .
It seems to be parsing the file as javascript. I am using meteor version 1.5.2. What is the correct way to import css files from node modules in meteor 1.5.2?
You can use the @import
syntax in your main style sheet to import the css instead of doing it in the component.