Files
zyplayer-doc/zyplayer-doc-ui/db-ui/vue.config.js

23 lines
625 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 官方配置文档https://webpack.js.org/configuration/dev-server/
module.exports = {
devServer: {
hot: true,
disableHostCheck: true,
port: 80,
host: 'local.zyplayer.com'
},
publicPath: './',
outputDir: '../../zyplayer-doc-db/src/main/resources/dist',
productionSourceMap: false,
pages: {
index: {
entry: 'src/main.js',
template: 'public/index.html',
filename: process.env.NODE_ENV === 'production'?'doc-db.html':'index.html',
},
},
// 在项目配置的时候,默认 npm 包导出的是运行时构建,即 runtime 版本,不支持编译 template 模板。
runtimeCompiler: true
};