ufocoder / redux-universal-boilerplate

Boilerplate for react universal (isomorphic) application based on flux architecture (redux implementation)
MIT License
72 stars 19 forks source link

enable stylus #6

Closed Jinnified closed 8 years ago

Jinnified commented 8 years ago

Hi

I was trying to add stylus, the stylus-loader as the webpack loader only works on client side, so i was trying to update the webpack/client/config.js, by adding the loaders such as:

loaders: [ { test: /\.styl$/, loader: 'style-loader!css-loader!stylus-loader' } ]

however the app still throws an error: ERROR in ../src/common/components/Layout/layout.styl Module parse failed

and it's still complaint about i do not have the right loader for .styl files. Just wondering if i am adding it at the right place?

thanks

ufocoder commented 8 years ago

@Jinnified I've just added support of stylus for boilerplate, please check it

Jinnified commented 8 years ago

thanks man, that works, however, i;d like to add yeticss to it as well, it seems that by adding

stylus: { use: [yeticss()] }

in the webpack client config.js doesn't take effect, and there is no error either, i wonder if i need to do something in the isompohic config too?

Jinnified commented 8 years ago

sorry my bad, forgot to add @import 'yeticss' in my styl file