mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 16:07:23 +08:00
Relocate source files to package root
This commit is contained in:
parent
14825b58a7
commit
3c98e8e863
@ -10,12 +10,12 @@ module.exports = function(options = {}) {
|
||||
const entries = {};
|
||||
|
||||
for (const app of ['forum', 'admin']) {
|
||||
const file = path.resolve(process.cwd(), 'js/' + app + '/index.js');
|
||||
const file = path.resolve(process.cwd(), app+'.js');
|
||||
if (fs.existsSync(file)) {
|
||||
entries[app] = file;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return entries;
|
||||
}(),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user