'use strict'1// Template version: 1.3.12// see http://vuejs-templates.github.io/webpack for documentation.34const path = require('path')5const BACKEND = process.env.BACKEND || 'http://127.0.0.1:6080'67module.exports = {8dev: {910// Paths11assetsSubDirectory: 'static',12assetsPublicPath: './',13proxyTable: {14'/api': {15target: BACKEND,16changeOrigin: true,17secure: false18},19'/websockify': {20target: BACKEND,21// logLevel: 'debug',22ws: true,23changeOrigin: true24}25},2627// Various Dev Server settings28host: 'localhost', // can be overwritten by process.env.HOST29port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined30autoOpenBrowser: false,31errorOverlay: true,32notifyOnErrors: true,33poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-3435// Use Eslint Loader?36// If true, your code will be linted during bundling and37// linting errors and warnings will be shown in the console.38useEslint: true,39// If true, eslint errors and warnings will also be shown in the error overlay40// in the browser.41showEslintErrorsInOverlay: false,4243/**44* Source Maps45*/4647// https://webpack.js.org/configuration/devtool/#development48devtool: 'cheap-module-eval-source-map',4950// If you have problems debugging vue-files in devtools,51// set this to false - it *may* help52// https://vue-loader.vuejs.org/en/options.html#cachebusting53cacheBusting: true,5455cssSourceMap: true56},5758build: {59// Template for index.html60index: path.resolve(__dirname, '../dist/index.html'),6162// Paths63assetsRoot: path.resolve(__dirname, '../dist'),64assetsSubDirectory: 'static',65assetsPublicPath: './',6667/**68* Source Maps69*/7071productionSourceMap: true,72// https://webpack.js.org/configuration/devtool/#production73devtool: '#source-map',7475// Gzip off by default as many popular static hosts such as76// Surge or Netlify already gzip all static assets for you.77// Before setting to `true`, make sure to:78// npm install --save-dev compression-webpack-plugin79productionGzip: false,80productionGzipExtensions: ['js', 'css'],8182// Run the build command with an extra argument to83// View the bundle analyzer report after build finishes:84// `npm run build --report`85// Set to `true` or `false` to always turn it on or off86bundleAnalyzerReport: process.env.npm_config_report87}88}899091