1.0.3 • Published 4 years ago
hyvue-builder v1.0.3
weForward项目构建依赖插件
需要配合weForward项目的配置文件使用
//vue.config.js
const isProduction = process.env.NODE_ENV === 'production';
module.exports = {
publicPath: isProduction ? (process.env.VUE_APP_TEM_BUILDPATHNAME + '/') : '/',
devServer: {
//前端页面的访问端口
port: process.env.VUE_APP_HY_HOST_PORT,
},
configureWebpack: config => {
if (isProduction) {
const hyVueBuilder = require('hyvue-builder');
config.plugins.push(new hyVueBuilder());
}
},
filenameHashing: true,
productionSourceMap: false
}