Meteor-Community-Packages / meteor-postcss

PostCSS for Meteor

Home Page:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import CSS styles from JS modules

yanickrochon opened this issue · comments

In Meteor writing

import 'modulename/dist/css/styles.css';

Add styles to the page, but how do I import the actual styles?

import styles from 'modulename/dist/css/styles.css';

console.log( );
// -> ... the CSS class name for ".foo"

At the moment, a STYLE DOM node is returned.

Hi, I guess you want to use CSS Modules here, right? Meteor's build system doesn't support CSS Modules and this package is not for it too. If you want to use CSS Modules in Meteor you could check the