diff --git a/.env b/.env deleted file mode 100644 index b567885..0000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -NODE_ENV="development" -BASE_URL="http://localhost:3000/" \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..654d1be --- /dev/null +++ b/.env.development @@ -0,0 +1,2 @@ +VUE_APP_CURRENTMODE ="development" +VUE_APP_LOGOUT_URL="http://localhost:3000/" \ No newline at end of file diff --git a/.env.prod b/.env.prod deleted file mode 100644 index 02bf465..0000000 --- a/.env.prod +++ /dev/null @@ -1,2 +0,0 @@ -NODE_ENV="production" -BASE_URL="https://www.jubao56.com/" \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..969fb25 --- /dev/null +++ b/.env.production @@ -0,0 +1,3 @@ + +VUE_APP_CURRENTMODE ="production" +VUE_APP_LOGOUT_URL="https://www.jubao56.com/" \ No newline at end of file diff --git a/.env.test b/.env.test deleted file mode 100644 index 00020ea..0000000 --- a/.env.test +++ /dev/null @@ -1,2 +0,0 @@ -NODE_ENV="test" -BASE_URL="http://localhost:3000/" \ No newline at end of file diff --git a/package.json b/package.json index b50a766..97e3db7 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "my_project", + "name": "vue-admin-project", "version": "0.1.0", "private": true, "scripts": { @@ -28,10 +28,12 @@ "@vue/cli-plugin-babel": "^3.4.0", "@vue/cli-service": "^3.4.0", "compression-webpack-plugin": "^2.0.0", + "html-webpack-plugin": "^3.2.0", "node-sass": "^4.9.2", "sass-loader": "^7.1.0", "vue-cli-plugin-element": "^1.0.1", - "vue-template-compiler": "^2.5.21" + "vue-template-compiler": "^2.5.21", + "webpack-bundle-analyzer": "^3.3.2" }, "postcss": { "plugins": { diff --git a/public/index.html b/public/index.html index fcda438..ba85a02 100644 --- a/public/index.html +++ b/public/index.html @@ -6,15 +6,7 @@ vue-admin-project - <% if (process.env.NODE_ENV === 'production') { %> - <% for(var css of htmlWebpackPlugin.options.cdn.css) { %> - - <% } %> - <% for(var js of htmlWebpackPlugin.options.cdn.js) { %> - - <% } %> - - <% } %> +