提交 379c20cb 作者: 郁骅焌

配置修改

上级 167bd786
......@@ -100,7 +100,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
preprocessorOptions: {
scss: {
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) {
// return ['variables.scss'].includes(basename(loaderContext))
// ? content
......
......@@ -45,7 +45,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
},
https,
fs: {
cachedChecks: true,
// cachedChecks: true,
},
},
resolve: {
......@@ -101,7 +101,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
preprocessorOptions: {
scss: {
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) {
// return ['variables.scss'].includes(basename(loaderContext))
// ? content
......
......@@ -101,7 +101,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
preprocessorOptions: {
scss: {
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,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论