试一下静态化
Showing
.env.development
0 → 100644
... | @@ -3,11 +3,12 @@ | ... | @@ -3,11 +3,12 @@ |
"version": "0.1.0", | "version": "0.1.0", | ||
"private": true, | "private": true, | ||
"scripts": { | "scripts": { | ||
"start": "npm run build:server && npm run build:client && npm run service", | |||
"build:client": "cross-env RUN_ENV=client vue-cli-service build", | |||
"build:server": "cross-env RUN_ENV=server vue-cli-service build --mode server", | |||
"service": "node server/index.js", | |||
"serve": "vue-cli-service serve", | "serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | "build": "vue-cli-service build" | ||
"devbuild": "vue-cli-service build --mode dev", | |||
"lint": "vue-cli-service lint", | |||
"test:unit": "vue-cli-service test:unit" | |||
}, | }, | ||
"dependencies": { | "dependencies": { | ||
"animate.css": "^4.1.0", | "animate.css": "^4.1.0", | ||
... | @@ -28,17 +29,21 @@ | ... | @@ -28,17 +29,21 @@ |
"jquery": "^3.4.1", | "jquery": "^3.4.1", | ||
"js-base64": "^2.5.1", | "js-base64": "^2.5.1", | ||
"js-md5": "^0.7.3", | "js-md5": "^0.7.3", | ||
"koa": "^2.13.1", | |||
"koa-static": "^5.0.0", | |||
"less-loader": "^5.0.0", | "less-loader": "^5.0.0", | ||
"lrz": "^4.9.40", | "lrz": "^4.9.40", | ||
"mint-ui": "^2.2.13", | "mint-ui": "^2.2.13", | ||
"nativeshare": "^2.1.3", | "nativeshare": "^2.1.3", | ||
"pdfjs-dist": "^2.4.456", | "pdfjs-dist": "^2.4.456", | ||
"portfinder": "^1.0.21", | "portfinder": "^1.0.21", | ||
"prerender-spa-plugin": "^3.4.0", | |||
"vue": "^2.6.10", | "vue": "^2.6.10", | ||
"vue-awesome-swiper": "^3.1.3", | "vue-awesome-swiper": "^3.1.3", | ||
"vue-count-to": "^1.0.13", | "vue-count-to": "^1.0.13", | ||
"vue-cropper": "^0.5.6", | "vue-cropper": "^0.5.6", | ||
"vue-i18n": "^8.14.0", | "vue-i18n": "^8.14.0", | ||
"vue-meta-info": "^0.1.7", | |||
"vue-native-share": "^1.0.2", | "vue-native-share": "^1.0.2", | ||
"vue-pdf": "^4.0.8", | "vue-pdf": "^4.0.8", | ||
"vue-preview": "^1.1.3", | "vue-preview": "^1.1.3", | ||
... | @@ -49,6 +54,7 @@ | ... | @@ -49,6 +54,7 @@ |
"vue-select": "^3.1.0", | "vue-select": "^3.1.0", | ||
"vue-video-player": "^5.0.2", | "vue-video-player": "^5.0.2", | ||
"vuex": "^3.0.1", | "vuex": "^3.0.1", | ||
"vuex-router-sync": "^5.0.0", | |||
"wangeditor": "^3.1.1", | "wangeditor": "^3.1.1", | ||
"weixin-js-sdk": "^1.4.0-test" | "weixin-js-sdk": "^1.4.0-test" | ||
}, | }, | ||
... | @@ -64,6 +70,7 @@ | ... | @@ -64,6 +70,7 @@ |
"babel-eslint": "^10.0.1", | "babel-eslint": "^10.0.1", | ||
"babel-jest": "^23.6.0", | "babel-jest": "^23.6.0", | ||
"babel-plugin-transform-remove-strict-mode": "0.0.2", | "babel-plugin-transform-remove-strict-mode": "0.0.2", | ||
"cross-env": "^7.0.3", | |||
"eslint": "^5.16.0", | "eslint": "^5.16.0", | ||
"eslint-plugin-vue": "^5.0.0", | "eslint-plugin-vue": "^5.0.0", | ||
"html-webpack-plugin": "^4.3.0", | "html-webpack-plugin": "^4.3.0", | ||
... | @@ -72,7 +79,9 @@ | ... | @@ -72,7 +79,9 @@ |
"node-sass": "^4.9.0", | "node-sass": "^4.9.0", | ||
"pdfh5": "^1.3.9", | "pdfh5": "^1.3.9", | ||
"sass-loader": "^7.1.0", | "sass-loader": "^7.1.0", | ||
"vue-server-renderer": "^2.6.12", | |||
"vue-template-compiler": "^2.6.10", | "vue-template-compiler": "^2.6.10", | ||
"webpack-node-externals": "^2.5.2", | |||
"weixin-jsapi": "^1.1.0", | "weixin-jsapi": "^1.1.0", | ||
"worker-loader": "^2.0.0" | "worker-loader": "^2.0.0" | ||
} | } | ||
... | ... |
server/index.js
0 → 100644
src/entry-client.js
0 → 100644
src/entry-server.js
0 → 100644
src/index.template.html
0 → 100644
This diff is collapsed.
src/views/test.vue
0 → 100644
Please
register
or
sign in
to comment