This repository was archived by the owner on Jul 19, 2021. It is now read-only.
File tree 2 files changed +6
-10
lines changed
packages/slate-tools/tools
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,15 @@ module.exports = class DevServer {
62
62
_isChunk ( key , chunks ) {
63
63
return (
64
64
chunks . filter ( ( chunk ) => {
65
- return key . indexOf ( chunk . id ) > - 1 ;
65
+ return key . indexOf ( chunk . id ) > - 1 && ! this . _isLiquidStyle ( key ) ;
66
66
} ) . length > 0
67
67
) ;
68
68
}
69
69
70
+ _isLiquidStyle ( key ) {
71
+ return key . indexOf ( 'styleLiquid.scss.liquid' ) > - 1 ;
72
+ }
73
+
70
74
_hasAssetChanged ( key , asset ) {
71
75
const oldHash = this . assetHashes [ key ] ;
72
76
const newHash = this . _updateAssetHash ( key , asset ) ;
Original file line number Diff line number Diff line change @@ -50,22 +50,14 @@ module.exports = {
50
50
{
51
51
test : / \. ( l i q u i d | j s o n ) $ / ,
52
52
exclude : [
53
- new RegExp ( 'assets/styles' ) ,
53
+ / ( c s s | s c s s | s a s s ) \. l i q u i d $ / ,
54
54
...config . get ( 'webpack.commonExcludes' ) ,
55
55
] ,
56
56
loader : 'file-loader' ,
57
57
options : {
58
58
name : '../[path][name].[ext]' ,
59
59
} ,
60
60
} ,
61
- {
62
- test : / a s s e t s \/ s t a t i c \/ / ,
63
- exclude : / n o d e _ m o d u l e s / ,
64
- loader : 'file-loader' ,
65
- options : {
66
- name : '[name].[ext]' ,
67
- } ,
68
- } ,
69
61
{
70
62
test : / ( c s s | s c s s | s a s s ) \. l i q u i d $ / ,
71
63
exclude : config . get ( 'webpack.commonExcludes' ) ,
You can’t perform that action at this time.
0 commit comments