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) {
5555 postcssImports ( {
5656 resolve : ( url : string , context : string ) => {
5757 return new Promise < string > ( ( resolve , reject ) => {
58+ if ( url && url . startsWith ( '~' ) ) {
59+ url = url . substr ( 1 ) ;
60+ }
5861 loader . resolve ( context , url , ( err : Error , result : string ) => {
5962 if ( err ) {
6063 reject ( err ) ;
@@ -110,7 +113,8 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
110113 filter : ( asset : PostcssUrlAsset ) => ! asset . hash && ! asset . absolutePath . endsWith ( '.cur' ) ,
111114 url : 'inline' ,
112115 // NOTE: maxSize is in KB
113- maxSize : 10
116+ maxSize : 10 ,
117+ fallback : 'rebase' ,
114118 }
115119 ] ) ,
116120 autoprefixer ( ) ,
You can’t perform that action at this time.
0 commit comments