标签:bpa npm lib prototype ide configure 框架 ack class
>: cnpm install axios
import axios from 'axios'
Vue.prototype.$axios = axios;
>: cnpm install vue-cookies
import cookies from 'vue-cookies'
Vue.prototype.$cookies = cookies;
>: cnpm install element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// bootstrap+jq配置:cnpm install jquery、cnpm install bootstrap@3
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'
>: cnpm install jquery
>: cnpm install bootstrap@3
const webpack = require("webpack");
module.exports = {
configureWebpack: {
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
"window.$": "jquery",
Popper: ["popper.js", "default"]
})
]
}
};
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'
标签:bpa npm lib prototype ide configure 框架 ack class
原文地址:https://www.cnblogs.com/DcentMan/p/11844509.html