mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
committed by
GitHub
parent
95caf9ebb5
commit
e9dbb03207
@@ -70,16 +70,18 @@ function configureServer(server, { paths, tasks }) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Watch source concats
|
// Watch source concats
|
||||||
server.watch(
|
if (tasks.concats?.length) {
|
||||||
resolve(
|
server.watch(
|
||||||
tasks.concats.reduce(
|
resolve(
|
||||||
(patterns, { includes }) => patterns.concat(includes),
|
tasks.concats.reduce(
|
||||||
[]
|
(patterns, { includes }) => patterns.concat(includes),
|
||||||
|
[]
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
).on('change', () => {
|
||||||
).on('change', () => {
|
concatFiles(...developmentConcatFilesArgs);
|
||||||
concatFiles(...developmentConcatFilesArgs);
|
});
|
||||||
});
|
}
|
||||||
|
|
||||||
// Watch source styles
|
// Watch source styles
|
||||||
server.watch(
|
server.watch(
|
||||||
|
|||||||
Reference in New Issue
Block a user