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:
@ -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