0
私は私のサーバーコードブートストラップのスタイルは何ですか?
var express=require('express')
var boostrap=require('bootstrap-styl')
var stylus=require('stylus')
var nib=require('nib')
var pug=require('pug')
var app=express()
app.use(express.static('public'));
app.use(stylus.middleware({
src: 'public',
compile: compile
}))
app.set('views', './views');
app.set('view engine', 'pug');
function compile(str,path){
return stylus(str)
.set('filename',path)
.set('compress',true)
.use([boostrap(),nib()])
}
app.get('/',function(req,res){
//res.send('Hello Hola')
res.render('index',{msg:'my message'})
})
app.listen(80)
私のヒスイコード
doctype html5
html
head
link(rel='stylesheet',href='/style/style.css')
body
=msg
input(type=text)
button.btn.btn-warning(type='button') Click
でスタイルではない、私のボタンページに
を明示、ブートストラップ-STYL、スタイラス、ペン先、およびパグ/ヒスイを使用ブートストラップ、実際にブートストラップ・スタイリングはどうしますか?
私の悪い、私はstyle.styl
@import 'nib'
@import bootstrap
body
background-color red
をお試しくださいアップ? https://www.npmjs.com/package/bootstrap-styl – DavidG