mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
fix(webpack5): angular scss rule not ignoring regular scss (#9502)
* fix(webpack5): angular scss rule not ignoring regular scss * test: angular scss snapshot update
This commit is contained in:
@ -231,8 +231,8 @@ exports[`angular configuration for android 1`] = `
|
||||
{
|
||||
test: /\\\\.scss$/,
|
||||
exclude: [
|
||||
'__jest__/src/app.css',
|
||||
'__jest__/src/app.android.css',
|
||||
'__jest__/src/app.scss',
|
||||
'__jest__/src/app.android.scss',
|
||||
/node_modules/
|
||||
],
|
||||
use: [
|
||||
@ -616,8 +616,8 @@ exports[`angular configuration for ios 1`] = `
|
||||
{
|
||||
test: /\\\\.scss$/,
|
||||
exclude: [
|
||||
'__jest__/src/app.css',
|
||||
'__jest__/src/app.ios.css',
|
||||
'__jest__/src/app.scss',
|
||||
'__jest__/src/app.ios.scss',
|
||||
/node_modules/
|
||||
],
|
||||
use: [
|
||||
|
@ -83,8 +83,8 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
// and instead use raw-loader, since that's what angular expects
|
||||
config.module
|
||||
.rule('scss|component')
|
||||
.exclude.add(resolve(getEntryDirPath(), 'app.css'))
|
||||
.add(resolve(getEntryDirPath(), `app.${platform}.css`))
|
||||
.exclude.add(resolve(getEntryDirPath(), 'app.scss'))
|
||||
.add(resolve(getEntryDirPath(), `app.${platform}.scss`))
|
||||
.add(/node_modules/)
|
||||
.end()
|
||||
.test(/\.scss$/)
|
||||
|
Reference in New Issue
Block a user