1.npm install bootstrap --save -dev 安装bootstrap
2.webpack.base.conf.js 修改一下内容
{
test:/\.styl$/,
loader: 'style-loader!css-loader!stylus-loader',
include: ['node build/dev-server.js'] //添加这一行内容
}
3.main.js 引用bootstrap
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'
import '../node_modules/bootstrap/dist/js/bootstrap.min.js'