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 @@ -67,6 +67,9 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
6767 postcssImports ( {
6868 resolve : ( url : string , context : string ) => {
6969 return new Promise < string > ( ( resolve , reject ) => {
70+ if ( url && url . startsWith ( '~' ) ) {
71+ url = url . substr ( 1 ) ;
72+ }
7073 loader . resolve ( context , url , ( err : Error , result : string ) => {
7174 if ( err ) {
7275 reject ( err ) ;
@@ -122,7 +125,8 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
122125 filter : ( asset : PostcssUrlAsset ) => ! asset . hash && ! asset . absolutePath . endsWith ( '.cur' ) ,
123126 url : 'inline' ,
124127 // NOTE: maxSize is in KB
125- maxSize : 10
128+ maxSize : 10 ,
129+ fallback : 'rebase' ,
126130 }
127131 ] ) ,
128132 autoprefixer ( ) ,
You can’t perform that action at this time.
0 commit comments