Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 调整 Dart Sass 的 warnings 配置 #16604

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading