mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
Remove the admin folder (front-end part of a plugin) from the files to watch so webpack so we can have hot reload with webpack
This commit is contained in:
parent
3890bc1211
commit
ad72a4f66d
@ -66,7 +66,8 @@ module.exports = function(appPath = '') {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const setFilesToWatch = (src) => {
|
const setFilesToWatch = (src) => {
|
||||||
var files = fs.readdirSync(src);
|
var files = _.includes(src, '/admin') || _.includes(src, 'components') ? [] : fs.readdirSync(src);
|
||||||
|
|
||||||
_.forEach(files, file => {
|
_.forEach(files, file => {
|
||||||
if (
|
if (
|
||||||
_.startsWith(file, '.') ||
|
_.startsWith(file, '.') ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user