Files
mes-ui-d2/config/index.js
liyang 4c4a5ad720 no message
Former-commit-id: 4b5a410628b480c6f6d4e36340ebb824dbc0fbd4 [formerly 0bc250779c2972c6b7b86495f30754dfb649e12a] [formerly 4b5a410628b480c6f6d4e36340ebb824dbc0fbd4 [formerly 0bc250779c2972c6b7b86495f30754dfb649e12a] [formerly 4b5a410628b480c6f6d4e36340ebb824dbc0fbd4 [formerly 0bc250779c2972c6b7b86495f30754dfb649e12a] [formerly 0bc250779c2972c6b7b86495f30754dfb649e12a [formerly 899c5987069bff2f0610edc7e0dd537e8ea12eaf [formerly 42bf16ff16270a6e7fed54f996ae63c0699e29f8]]]]]
Former-commit-id: baca52e373b9cc0acc4a46cdee4d57b8e97c9567
Former-commit-id: 13da1cddafc1c1b54afb95b3e483c1007754b11d
Former-commit-id: 0849a7a6c525c7b62a904af5b7d09074c7d29154 [formerly f999d1e26403665a93ab9f62141572a1aeec5f33]
Former-commit-id: 61f7229d0eb541e177e578a62071fa5031728335
Former-commit-id: c8df777290e93b57c535b25010f93d33a8a98eb3
Former-commit-id: 0473e1688d8858de4cdf78c7927955241f086622
Former-commit-id: 8a6efd0903bf3a3140d2469fc3a2f16f408cd37a
Former-commit-id: dd6d7e2018fc2e28873f798b16245c4b6fc9ab71
2018-06-21 23:55:01 +08:00

83 lines
2.6 KiB
JavaScript
Executable File

'use strict'
// Template version: 1.2.7
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: true,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,
/**
* Source Maps
*/
// https://webpack.js.org/configuration/devtool/#development
devtool: 'eval-source-map',
// If you have problems debugging vue-files in devtools,
// set this to false - it *may* help
// https://vue-loader.vuejs.org/en/options.html#cachebusting
cacheBusting: true,
// CSS Sourcemaps off by default because relative paths are "buggy"
// with this option, according to the CSS-Loader README
// (https://github.com/webpack/css-loader#sourcemaps)
// In our experience, they generally work as expected,
// just be aware of this issue when enabling this option.
cssSourceMap: false,
},
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
// 请根据你的站点地址修改这里
assetsPublicPath: './',
/**
* Source Maps
*/
productionSourceMap: true,
// https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map',
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
// Run the build command with an extra argument to
// View the bundle analyzer report after build finishes:
// `npm run build --report`
// Set to `true` or `false` to always turn it on or off
bundleAnalyzerReport: process.env.npm_config_report
}
}