File tree Expand file tree Collapse file tree 2 files changed +173
-127
lines changed Expand file tree Collapse file tree 2 files changed +173
-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 (
You can’t perform that action at this time.
0 commit comments