在 vue-cli 中引入 SemanticUI
首先,我们需要先安装 jQuery
npm install — save jquery
然后在 webpack.dev.config.js 文件中,添加
// plugins 区块内
new webpack.ProvidePlugin({
$ : “jquery”,
jQuery : “jquery”,
“window.jQuery”: “jquery”,
“root.jQuery” : “jquery”
})
随后安装 semantic-ui-css
npm ins...
blog.lbj.moe1 min read