Commit 7b964f5eec4c25c31c79a5b3d0a4ff701a3b6e93
1 parent
5f1d4b4447
Exists in
master
and in
3 other branches
change port
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/index.js
1 | 'use strict' | 1 | 'use strict' |
2 | // Template version: 1.3.1 | 2 | // Template version: 1.3.1 |
3 | // see http://vuejs-templates.github.io/webpack for documentation. | 3 | // see http://vuejs-templates.github.io/webpack for documentation. |
4 | 4 | ||
5 | const path = require('path') | 5 | const path = require('path') |
6 | 6 | ||
7 | module.exports = { | 7 | module.exports = { |
8 | dev: { | 8 | dev: { |
9 | 9 | ||
10 | // Paths | 10 | // Paths |
11 | assetsSubDirectory: 'static', | 11 | assetsSubDirectory: 'static', |
12 | assetsPublicPath: '/', | 12 | assetsPublicPath: '/', |
13 | proxyTable: { | 13 | proxyTable: { |
14 | // mock api server url | 14 | // mock api server url |
15 | }, | 15 | }, |
16 | 16 | ||
17 | // Various Dev Server settings | 17 | // Various Dev Server settings |
18 | host: '0.0.0.0', // can be overwritten by process.env.HOST | 18 | host: '0.0.0.0', // can be overwritten by process.env.HOST |
19 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined | 19 | port: 6000, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined |
20 | autoOpenBrowser: false, | 20 | autoOpenBrowser: false, |
21 | errorOverlay: true, | 21 | errorOverlay: true, |
22 | notifyOnErrors: true, | 22 | notifyOnErrors: true, |
23 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- | 23 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- |
24 | 24 | ||
25 | // Use Eslint Loader? | 25 | // Use Eslint Loader? |
26 | // If true, your code will be linted during bundling and | 26 | // If true, your code will be linted during bundling and |
27 | // linting errors and warnings will be shown in the console. | 27 | // linting errors and warnings will be shown in the console. |
28 | useEslint: true, | 28 | useEslint: true, |
29 | // If true, eslint errors and warnings will also be shown in the error overlay | 29 | // If true, eslint errors and warnings will also be shown in the error overlay |
30 | // in the browser. | 30 | // in the browser. |
31 | showEslintErrorsInOverlay: false, | 31 | showEslintErrorsInOverlay: false, |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * Source Maps | 34 | * Source Maps |
35 | */ | 35 | */ |
36 | 36 | ||
37 | // https://webpack.js.org/configuration/devtool/#development | 37 | // https://webpack.js.org/configuration/devtool/#development |
38 | devtool: 'cheap-module-eval-source-map', | 38 | devtool: 'cheap-module-eval-source-map', |
39 | 39 | ||
40 | // If you have problems debugging vue-files in devtools, | 40 | // If you have problems debugging vue-files in devtools, |
41 | // set this to false - it *may* help | 41 | // set this to false - it *may* help |
42 | // https://vue-loader.vuejs.org/en/options.html#cachebusting | 42 | // https://vue-loader.vuejs.org/en/options.html#cachebusting |
43 | cacheBusting: true, | 43 | cacheBusting: true, |
44 | 44 | ||
45 | cssSourceMap: true | 45 | cssSourceMap: true |
46 | }, | 46 | }, |
47 | 47 | ||
48 | build: { | 48 | build: { |
49 | // Template for index.html | 49 | // Template for index.html |
50 | index: path.resolve(__dirname, '../dist/index.html'), | 50 | index: path.resolve(__dirname, '../dist/index.html'), |
51 | 51 | ||
52 | // Paths | 52 | // Paths |
53 | assetsRoot: path.resolve(__dirname, '../dist'), | 53 | assetsRoot: path.resolve(__dirname, '../dist'), |
54 | assetsSubDirectory: 'static', | 54 | assetsSubDirectory: 'static', |
55 | assetsPublicPath: '/', | 55 | assetsPublicPath: '/', |
56 | 56 | ||
57 | /** | 57 | /** |
58 | * Source Maps | 58 | * Source Maps |
59 | */ | 59 | */ |
60 | 60 | ||
61 | productionSourceMap: true, | 61 | productionSourceMap: true, |
62 | // https://webpack.js.org/configuration/devtool/#production | 62 | // https://webpack.js.org/configuration/devtool/#production |
63 | devtool: '#source-map', | 63 | devtool: '#source-map', |
64 | 64 | ||
65 | // Gzip off by default as many popular static hosts such as | 65 | // Gzip off by default as many popular static hosts such as |
66 | // Surge or Netlify already gzip all static assets for you. | 66 | // Surge or Netlify already gzip all static assets for you. |
67 | // Before setting to `true`, make sure to: | 67 | // Before setting to `true`, make sure to: |
68 | // npm install --save-dev compression-webpack-plugin | 68 | // npm install --save-dev compression-webpack-plugin |
69 | productionGzip: false, | 69 | productionGzip: false, |
70 | productionGzipExtensions: ['js', 'css'], | 70 | productionGzipExtensions: ['js', 'css'], |
71 | 71 | ||
72 | // Run the build command with an extra argument to | 72 | // Run the build command with an extra argument to |
73 | // View the bundle analyzer report after build finishes: | 73 | // View the bundle analyzer report after build finishes: |
74 | // `npm run build --report` | 74 | // `npm run build --report` |
75 | // Set to `true` or `false` to always turn it on or off | 75 | // Set to `true` or `false` to always turn it on or off |
76 | bundleAnalyzerReport: process.env.npm_config_report | 76 | bundleAnalyzerReport: process.env.npm_config_report |
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 |