Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-webpack:component asset path is not properly created... #54

Closed
dannymk opened this issue Feb 14, 2015 · 1 comment · Fixed by #62
Closed

react-webpack:component asset path is not properly created... #54

dannymk opened this issue Feb 14, 2015 · 1 comment · Fixed by #62

Comments

@dannymk
Copy link

dannymk commented Feb 14, 2015

yo react-webpack:component Panels/Main
...
styles/Component
create src/scripts/components/Panels/Main.js
create test/spec/components/Panels/Main.js
create src/styles/Panels/Main.sass
...

in components/Panels/Mail.js
...
require('../../styles/Main.sass'); //<--- this does not work
it should be
require('../../../styles/Panels/Main.sass'); //<--- works!

@ColCh
Copy link
Contributor

ColCh commented Feb 20, 2015

Wow, nice feature request here 👍

I think that it's better to make alises [in webpack config] to point in 'src/styles' dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants