-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Description
father 中这样设置 entry
entry: {
[path.parse(config.output.filename).name]: path.join(
opts.cwd,
config.entry,
),
},运行时的数据大致如下:
const { build, dev } = require(process.env.OKAM);
build({
entry: {
'index.min': '/Users/congxiaochen/Documents/father/examples/normal/src/index'
}
})Load config failed: entry:index.min not found
error - [Error: Build with mako failed.]手动写上后缀
const { build, dev } = require(process.env.OKAM);
build({
entry: {
'index.min': '/Users/congxiaochen/Documents/father/examples/normal/src/index.tsx'
}
})项目可以正常执行构建
basic optimize in 0ms.
dist/index.min.js 145.57 kB │ map: 351.88 kB
✓ Built in 181ms
Complete!Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels