-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
Hi,
"bootstrap-styl": "^5.0.5",
"stylus": "^0.54.5",
"stylus-loader": "^2.0.0",
"webpack": "^1.9.5",
Im trying to use bootstrap-stylus in a Webpack context.
As far as I understand, bootstrap-stylus is a Stylus plugin so i used this config in order to parse bootstrap stylus files :
//webpack.config.js
module.exports = {
...
module : {
loaders: [
{ test: /\.styl$/, loader: 'style-loader!css-loader!stylus-loader' },
{ test: /\.css$/, loader: 'style!css' },
]
}
stylus: {
use: [bootstrap()],
},
}
//navbar.styl
@import 'bootstrap/buttons'
.navbar
height 6.5rem
//navbar.html
<div class="navbar">
<span class="btn btn-primary"></span>
</div>
When I run my serve and inspect, I see that btn is loaded but not compiled (and off course btn-primary is not generated)
I didnt found any other way to configure it with Webpack.
Any idea ?
Metadata
Metadata
Assignees
Labels
No labels