提交 379c20cb 作者: 郁骅焌

配置修改

上级 167bd786
...@@ -100,7 +100,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { ...@@ -100,7 +100,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
preprocessorOptions: { preprocessorOptions: {
scss: { scss: {
api: 'modern-compiler', // 修复警告: Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. api: 'modern-compiler', // 修复警告: Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
sassOptions: { outputStyle: 'expanded' }, // sassOptions: { outputStyle: 'expanded' },
// additionalData(content: string, loaderContext: string) { // additionalData(content: string, loaderContext: string) {
// return ['variables.scss'].includes(basename(loaderContext)) // return ['variables.scss'].includes(basename(loaderContext))
// ? content // ? content
......
...@@ -45,7 +45,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { ...@@ -45,7 +45,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
}, },
https, https,
fs: { fs: {
cachedChecks: true, // cachedChecks: true,
}, },
}, },
resolve: { resolve: {
...@@ -101,7 +101,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { ...@@ -101,7 +101,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
preprocessorOptions: { preprocessorOptions: {
scss: { scss: {
api: 'modern-compiler', // 修复警告: Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. api: 'modern-compiler', // 修复警告: Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
sassOptions: { outputStyle: 'expanded' }, // sassOptions: { outputStyle: 'expanded' },
// additionalData(content: string, loaderContext: string) { // additionalData(content: string, loaderContext: string) {
// return ['variables.scss'].includes(basename(loaderContext)) // return ['variables.scss'].includes(basename(loaderContext))
// ? content // ? content
......
...@@ -101,7 +101,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { ...@@ -101,7 +101,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
preprocessorOptions: { preprocessorOptions: {
scss: { scss: {
api: 'modern-compiler', // 修复警告: Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. api: 'modern-compiler', // 修复警告: Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
sassOptions: { outputStyle: 'expanded' }, // sassOptions: { outputStyle: 'expanded' },
}, },
}, },
devSourcemap: true, devSourcemap: true,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论