mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
Fix dev mode
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
94d6abafaa
commit
17e5e835b1
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user