1 Star 4 Fork 2

云香水识 / group_chat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.f2econfig.build.js 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
// @ts-check
const { join } = require('path')
const { port, publicPath } = require('./lib/config').default
const { version } = require('./package.json')
/**
* @type {import('f2e-server').F2EConfig}
*/
const config = {
// @ts-ignore
publicPath, version,
port,
livereload: false,
build: true,
__withlog__: true,
buildFilter: (p) => /^(.esbuild\/?(external|$)|index|css|src\/?(index|$)|$)/.test(p),
outputFilter: (p) => /^(index|css|static|$)/.test(p),
namehash: {
replacer: (name, hash) => `${publicPath}/${name}?${hash}`
},
useLess: {
globalVars: {
'publicPath': `"${publicPath}"`,
}
},
middlewares: [
{ middleware: 'template', test: /\.html?/ },
{
middleware: 'esbuild',
test: /^\/?static\b/,
options: {
publicPath: publicPath + '/static',
define: {
"process.env.NODE_ENV": '"production"',
},
}
},
],
try_files: 'index.html',
output: join(__dirname, './cszg_chat'),
}
module.exports = config
1
https://gitee.com/shy9120/group_chat.git
git@gitee.com:shy9120/group_chat.git
shy9120
group_chat
group_chat
master

搜索帮助