0.1.0 • Published 7 years ago
bootstrap-3-stylus-webpack v0.1.0
Bootstrap Stylus 3 Webpack
Bootstrap Stylus 3.3.7 for Webpack.
Installing
$ npm install bootstrap-3-stylus-webpack
Usage
Make sure you have your stylus-loader configured for .styl
file extensions and url-loader for font files:
loaders: [{
test: /\.styl$/,
loader: `css-loader!stylus-loader`,
}, {
test: /\.(png|woff|woff2|eot|ttf|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'url-loader'
}]
Then in one of your .js
files (not .styl
), probably in an entry file:
// for complete package - the styles and the javascript:
require('bootstrap-3-stylus-webpack')
// or individually:
require('bootstrap-3-stylus-webpack/styl/dropdowns.styl')
require('bootstrap-3-stylus-webpack/styl/mixins/alert.styl')
require('bootstrap-3-stylus-webpack/js/button.js')
JS files come with their jquery
dependency fulfilled, so no need to configure it otherwise.
Original Authors
0.1.0
7 years ago