uses vue-cli 3
pages: {
index: {
entry: "./src/page/index/main.js",
template: "./public/index.html"
},
news: {
entry: "./src/page/news/main.js",
template: "./public/index.html"
},
rrnt: {
entry: "./src/page/rrnt/main.js",
template: "./public/index.html"
},
transparent: {
entry: "./src/page/transparent/main.js",
template: "./public/index.html"
},
joininplan: {
entry: "./src/page/joininplan/main.js",
template: "./public/index.html"
},
apply: {
entry: "./src/page/apply/main.js",
template: "./public/index.html"
}
},
as shown in the figure, there are several pages, each page is a vue application, and each entry js file has the same reference:
import Vue from "vue"
import App from "./App.vue"
import router from "./router"
import axios from "axios"
import "@/assets/bootstrap.css"
import "@/assets/base.css"
import "@/assets/main.css"
import topbar from "@/components/top.vue"
import bottom from "@/components/bottom.vue"
Vue.config.productionTip = false
Vue.prototype.$axios = axios
Vue.component("topbar", topbar)
Vue.component("bottom", bottom)
document.title =""
new Vue({
router,
render: h => h(App)
}).$mount("-sharpapp")
however, when packing, it will stop and there will be no response. The node.exe process accounts for 25% of the cpu (4 cores on this computer), and the memory usage is rising all the time
using the system cmd or git bash
pages. Try it next and comment out any one of them. There are 5 left, all of which can be packaged successfully in less than 30 seconds
.as long as 6 are restored, they just can"t be packaged. It"s really weird!
2018-8-27 add: a total of 3 computers have been tried, and they are all in the same situation. It should not be a problem of environment configuration
.