1 Star 0 Fork 29

xxcld/vue-flow-topology(流程图)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
zlluGitHub 提交于 2021-01-28 22:20 . update all
// const CompressionPlugin = require("compression-webpack-plugin")
module.exports = {
// configureWebpack: config => {
// if (process.env.NODE_ENV === 'production') { // 去掉console.log
// config.optimization.minimizer[0].options.terserOptions.compress.warnings = false
// config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
// config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true
// config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = ['console.log']
// }
// if (process.env.NODE_ENV === 'production') {
// return {
// plugins: [
// new CompressionPlugin({
// test: /\.js$|\.html$|\.css/, //匹配文件名
// threshold: 10240,//对超过10k的数据压缩
// deleteOriginalAssets: false //不删除源文件
// })
// ]
// }
// }
// },
// 根域上下文目录
// publicPath: '/topology', // publicPath:'/rm', 这里可以设置二级文件夹作为主页面
// devServer: {
// port: 8080,
// // sockHost: 'http://127.0.0.1',
// // disableHostCheck: true,
// // open: true,
// // host: "localhost",
// proxy: {
// '/piflow': {
// target: ' ',
// changeOrigin: true,
// ws: true, // 是否启用websockets
// secure: false, // 使用的是http协议则设置为false,https协议则设置为true
// pathRewrite: {
// '^/piflow': '/'
// }
// }
// },
// },
productionSourceMap: process.env.NODE_ENV === 'production' ? false : true,
lintOnSave: false, // 取消 eslint 验证
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xxcld/vue-flow-topology.git
git@gitee.com:xxcld/vue-flow-topology.git
xxcld
vue-flow-topology
vue-flow-topology(流程图)
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385