From d2d52d80f60670833bda52bf78b098d95e7c3407 Mon Sep 17 00:00:00 2001 From: Szymon Stasik Date: Wed, 16 Oct 2019 08:55:52 -0500 Subject: [PATCH] fix styleUrls loading --- cypress/plugins/cy-ts-preprocessor.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/cypress/plugins/cy-ts-preprocessor.js b/cypress/plugins/cy-ts-preprocessor.js index da07a051..aa313063 100644 --- a/cypress/plugins/cy-ts-preprocessor.js +++ b/cypress/plugins/cy-ts-preprocessor.js @@ -19,6 +19,29 @@ const webpackOptions = { { test: /\.async\.(html|css)$/, loaders: ['file?name=[name].[hash].[ext]', 'extract'] + }, { + test: /\.scss$/, + use: [ + 'to-string-loader', + { + loader: 'style-loader', + options: { + sourceMap: true, + }, + }, + { + loader: 'css-loader', + options: { + sourceMap: true, + }, + }, + { + loader: 'sass-loader', + options: { + sourceMap: true, + }, + } + ] } ] }