File tree Expand file tree Collapse file tree 3 files changed +174
-127
lines changed Expand file tree Collapse file tree 3 files changed +174
-127
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,30 @@ const server = patternlab => {
36
36
patternlab . config . paths . public . root
37
37
)
38
38
) ;
39
+ defaults . assets = [
40
+ path . resolve (
41
+ path . join (
42
+ process . cwd ( ) ,
43
+ patternlab . config . paths . source . js ,
44
+ '**' ,
45
+ '*.js' // prevent preprocessors like typescript from reloading
46
+ )
47
+ ) ,
48
+ path . resolve (
49
+ path . join ( process . cwd ( ) , patternlab . config . paths . source . images )
50
+ ) ,
51
+ path . resolve (
52
+ path . join ( process . cwd ( ) , patternlab . config . paths . source . fonts )
53
+ ) ,
54
+ path . resolve (
55
+ path . join (
56
+ process . cwd ( ) ,
57
+ patternlab . config . paths . source . css ,
58
+ '**' ,
59
+ '*.css' // prevent preprocessors from reloading
60
+ )
61
+ ) ,
62
+ ] ;
39
63
40
64
// allow for overrides should they exist inside patternlab-config.json
41
65
const liveServerConfig = Object . assign (
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ function serve() {
27
27
return patternlab . server
28
28
. serve ( {
29
29
cleanPublic : config . cleanPublic ,
30
+ watch : true ,
30
31
} )
31
32
. then ( ( ) => {
32
33
// do something else when this promise resolves
You can’t perform that action at this time.
0 commit comments