1
0
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:
Toby Zerner
2018-06-16 13:49:34 +09:30
parent 14825b58a7
commit 3c98e8e863

View File

@@ -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;
}(),