react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

Support Generating CSS-File in Component Directory #242

Closed sthzg closed 8 years ago

sthzg commented 8 years ago

Would you consider adding an option to the component sub-generator that would create the style-file (css, scss, less, ...) inside the component directory itself rather than the .src/style directory?

E.g. yo react-webpack:component my/namespaced/components/name --stylesincompdir

weblogixx commented 8 years ago

This will be the standard in version 4 (testable via the npm beta tag). Older projects will still add to the styles directory for backwards compatibility.

sthzg commented 8 years ago

Oh great, I was still looking more into the new template project instead of the new generator as a whole. Thanks for clarifying.