Files
mes-ui-d2/config/index.js
liyang 926701ea70 no message
Former-commit-id: 410b7caa772ac92996bb8d4fb5a0ed5be2328915 [formerly 410b7caa772ac92996bb8d4fb5a0ed5be2328915 [formerly 410b7caa772ac92996bb8d4fb5a0ed5be2328915 [formerly 410b7caa772ac92996bb8d4fb5a0ed5be2328915 [formerly 1d638668ef8eaa8bf67ec463ee68e86cd8337a99 [formerly 2e8abe05c7b4ded215634b22fe7b445d337d3372]]]]]
Former-commit-id: 33bbfe4fcad6162aef45ab23ae5895bb7f5af00f
Former-commit-id: b4c43693a8bc6ac105bafb5b38959c1ab3a74771
Former-commit-id: f7da96f1e40f45f4870cffd9818341466fcca9a3 [formerly 85ad34dda93bd036e235b23eb7c57ec1d29c7323]
Former-commit-id: e3e438a4789fd8a3573dc6a2fae43178e5c0a6ca
Former-commit-id: 07783bbdd57d3b8fc1cfccd65ce8388e9dbdb72f
Former-commit-id: 11423c305520b6e3705b3ab81c49dae31df7042c
Former-commit-id: 6090cf03436f74b19e40f7f07d3ec8ba50e19e9b
Former-commit-id: a1a36d1aa9a4dc2232cecefc78408730c6625afb
2018-06-27 13:34: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: true,
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: '/d2-admin-preview/',
/**
* 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
}
}