Fix dev mode

Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
soupette 2021-09-23 16:39:42 +02:00
parent 94d6abafaa
commit 17e5e835b1

View File

@ -241,8 +241,8 @@ async function watchAdmin({ plugins, dir, host, port, browser, options }) {
*/
async function watchFiles(dir) {
const cacheDir = path.join(dir, '.cache');
const appExtensionFile = path.join(dir, 'admin', 'app.js');
const extensionsPath = path.join(dir, 'admin', 'extensions');
const appExtensionFile = path.join(dir, 'src', 'admin', 'app.js');
const extensionsPath = path.join(dir, 'src', 'admin', 'extensions');
// Only watch the admin/app.js file and the files that are in the ./admin/extensions/folder
const filesToWatch = [appExtensionFile, extensionsPath];