mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Relocate source files to package root
This commit is contained in:
@@ -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;
|
||||
}(),
|
||||
|
||||
|
Reference in New Issue
Block a user