如何把bootstrap用webpack打包
1 回答

慕少森
TA貢獻(xiàn)2019條經(jīng)驗(yàn) 獲得超9個(gè)贊
# 第1步安裝bootstrap-loader
npm install bootstrap-loader --save
# 第2步 如果你使用的是Bootstrap3
npm install bootstrap-sass --save
#如果你使用的是Bootstrap4
npm install bootstrap@v4.0.0-alpha.2 --save
# 我發(fā)現(xiàn)npm下載不了bootstrap4,所以我是從網(wǎng)上下載下來的,然后放到
# node_modules下的,下載地址h com/getting-started/download/
# 第四步 安裝其他樣式處理loader
npm install css-loader node-sass resolve-url-loader sass-loader style-loader url-loader --save
# 如果你使用的是Bootstrap 4,可能會(huì)需要
- 1 回答
- 0 關(guān)注
- 1493 瀏覽
添加回答
舉報(bào)
0/150
提交
取消