Pan 7 years ago
parent
commit
7cc541a15a
2 changed files with 4 additions and 4 deletions
  1. 1 1
      config/index.js
  2. 3 3
      package.json

+ 1 - 1
config/index.js

7
     index: path.resolve(__dirname, '../dist/index.html'),
7
     index: path.resolve(__dirname, '../dist/index.html'),
8
     assetsRoot: path.resolve(__dirname, '../dist'),
8
     assetsRoot: path.resolve(__dirname, '../dist'),
9
     assetsSubDirectory: 'static',
9
     assetsSubDirectory: 'static',
10
-    assetsPublicPath: '/',
10
+    assetsPublicPath: './',
11
     productionSourceMap: true,
11
     productionSourceMap: true,
12
     // Gzip off by default as many popular static hosts such as
12
     // Gzip off by default as many popular static hosts such as
13
     // Surge or Netlify already gzip all static assets for you.
13
     // Surge or Netlify already gzip all static assets for you.

+ 3 - 3
package.json

1
 {
1
 {
2
-  "name": "vue-admin",
2
+  "name": "vue-admin-template",
3
   "version": "1.0.0",
3
   "version": "1.0.0",
4
-  "description": "A Vue.js project",
4
+  "license": "MIT",
5
+  "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
5
   "author": "Pan <panfree23@gmail.com>",
6
   "author": "Pan <panfree23@gmail.com>",
6
-  "private": true,
7
   "scripts": {
7
   "scripts": {
8
     "dev": "node build/dev-server.js",
8
     "dev": "node build/dev-server.js",
9
     "start": "node build/dev-server.js",
9
     "start": "node build/dev-server.js",