File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/@angular/cli/models/webpack-configs Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
55
55
postcssImports ( {
56
56
resolve : ( url : string , context : string ) => {
57
57
return new Promise < string > ( ( resolve , reject ) => {
58
+ if ( url && url . startsWith ( '~' ) ) {
59
+ url = url . substr ( 1 ) ;
60
+ }
58
61
loader . resolve ( context , url , ( err : Error , result : string ) => {
59
62
if ( err ) {
60
63
reject ( err ) ;
@@ -110,7 +113,8 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
110
113
filter : ( asset : PostcssUrlAsset ) => ! asset . hash && ! asset . absolutePath . endsWith ( '.cur' ) ,
111
114
url : 'inline' ,
112
115
// NOTE: maxSize is in KB
113
- maxSize : 10
116
+ maxSize : 10 ,
117
+ fallback : 'rebase' ,
114
118
}
115
119
] ) ,
116
120
autoprefixer ( ) ,
You can’t perform that action at this time.
0 commit comments