I tried to use the content scripts
to make an popup page by Vue.js
and Bootstrap
the popup page works good, but the side effect of this let the original website components setting become a chaos. I used es6
and compile by webpack
.
As following my code:
import Vue from 'vue';
import BootstrapVue from 'bootstrap-vue';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';
import 'animate.css/animate.min.css';
//component
import App from './App.vue';
//scripts
Vue.use(BootstrapVue)
Vue.config.silent = true;
var initDom = document.createElement("div");
initDom.id = "extensionUIwrap";
document.getElementsByTagName("body")[0].appendChild(initDom);
new Vue({
render: h => h(App)
}).$mount('#extensionUIwrap')
How to let the css module just made effect on my popup page or exclude effect from the original website?