Skip to content

Commit

Permalink
Merge pull request #2 from ciekawy/load_styleUrls
Browse files Browse the repository at this point in the history
fix styleUrls loading with sass
  • Loading branch information
meDavid authored Oct 17, 2019
2 parents 7912306 + d2d52d8 commit 2a2b38a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cypress/plugins/cy-ts-preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
]
}
]
}
Expand Down

0 comments on commit 2a2b38a

Please sign in to comment.