Skip to content

Commit

Permalink
Merge pull request #4267 from adhu2018/master
Browse files Browse the repository at this point in the history
优化web相关自动构建
  • Loading branch information
Xwite authored Oct 10, 2024
2 parents 3e9b200 + 55763e6 commit 0da8ed7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand Down
7 changes: 7 additions & 0 deletions modules/web/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,11 @@ export default ({ mode }) =>
},
},
},
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler', // or 'modern'
},
},
},
});

0 comments on commit 0da8ed7

Please sign in to comment.