File tree 2 files changed +13
-4
lines changed
packages/@vue/cli-service 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,10 @@ test('css.loaderOptions', () => {
307
307
css : {
308
308
loaderOptions : {
309
309
sass : {
310
- prependData
310
+ prependData,
311
+ sassOptions : {
312
+ includePaths : [ './src/styles' ]
313
+ }
311
314
}
312
315
}
313
316
}
@@ -316,12 +319,17 @@ test('css.loaderOptions', () => {
316
319
317
320
expect ( findOptions ( config , 'scss' , 'sass' ) ) . toMatchObject ( {
318
321
prependData,
319
- sourceMap : false
322
+ sourceMap : false ,
323
+ sassOptions : {
324
+ includePaths : [ './src/styles' ]
325
+ }
320
326
} )
327
+ expect ( findOptions ( config , 'scss' , 'sass' ) . sassOptions ) . not . toHaveProperty ( 'indentedSyntax' )
321
328
expect ( findOptions ( config , 'sass' , 'sass' ) ) . toMatchObject ( {
322
329
prependData,
323
330
sassOptions : {
324
- indentedSyntax : true
331
+ indentedSyntax : true ,
332
+ includePaths : [ './src/styles' ]
325
333
} ,
326
334
sourceMap : false
327
335
} )
Original file line number Diff line number Diff line change @@ -204,7 +204,8 @@ module.exports = (api, rootOptions) => {
204
204
loaderOptions . sass ,
205
205
{
206
206
sassOptions : Object . assign (
207
- ( loaderOptions . sass && loaderOptions . sass . sassOptions ) || { } ,
207
+ { } ,
208
+ loaderOptions . sass && loaderOptions . sass . sassOptions ,
208
209
{
209
210
indentedSyntax : true
210
211
}
You can’t perform that action at this time.
0 commit comments