Skip to content

Commit

Permalink
chore: 调整 Dart Sass 的 warnings 配置 (#16604)
Browse files Browse the repository at this point in the history
  • Loading branch information
koppthe authored Sep 26, 2024
1 parent 9174d18 commit bcbd228
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/taro-webpack5-runner/src/webpack/WebpackModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export class WebpackModule {
implementation: require('sass'),
sassOptions: {
outputStyle: 'expanded',
// https://github.com/sass/dart-sass/blob/main/CHANGELOG.md#js-api
silenceDeprecations: ['legacy-js-api'],
importer (url, prev, done) {
// 让 sass 文件里的 @import 能解析小程序原生样式文体,如 @import "a.wxss";
const extname = path.extname(url)
Expand Down

0 comments on commit bcbd228

Please sign in to comment.