Thanks, for taking the time to evaluate. I checked into it the chrome console react - looks clean, no spans, all properties are there.
On my previous project prior to adapting to webpack the very same declaration worked fine. So either I forgot / messed something up somewhere else or it is the webpack that makes all the difference. I will post if I get it to work
So, Iām not quite sure what did it (my guess is the new webpack and default webpack config), but syncing up to the latest kickstart seems to have solved my problem. Thanks!
Does the package remove all of Meteorās default file loading? It looks like /server and /client folders still work as usual, while js (and css?) files arenāt loaded anymore.
Iām currently using packages to split my code into modules (everything is inside /packages now). What do you think is the best way to move towards using webpack? Having includes seems just so much easier than using package.js files, plus safe Meteor.is[Env] makes some things really simple.
Some files (mainly webpack.conf.js) needs to be only on the client or only on the server so we have to follow the same way Meteor is working. Outside of that, you can use your own structure.
If you look at my examples, I have a modules folder instead of packages. You just require your modules within your entry files and thatās it. Couldnāt be simplier. For Meteor.is[env], it is still working the same way.
Not at the moment and Iām not sure I see a good way of doing that.
I did made unit and integration run with velocity and webpack but it will not work with the current version. It will be released soon (probably tomorrow)
In modules/Component/client/css/styles.import.css, when I add @import 'basscss';, itās affecting the whole app. Not adding it while still having basscss in webpack.packages.json, nothingās affected. With import.css, shouldnāt that import be scoped to Component?
(This is using blaze-template-helper, FlowRouter and BlazeLayout to integrate modules/Component into an existing, Blaze-centric app. Seems to work fine except for the above.)
No it is not how css with webpack are working at all. When your component will be mounted for the first time, it will see it needs the CSS and add it to the page. It canāt be restricted to only a component.
Oh. What about new-fangled CSS modules? Just found out about them. Theyāre supported by Webpackās css-loader by adding the modules arg (see local-scope, css-modules), but Iām still figuring out how or if it could be used with your package. Any thoughts? There are examples here for CSS modules and here for React CSS modules, but theyāre using import syntax instead of require() (in componentWillMount()).