Skip to content

Commit

Permalink
fix(build): throw sass exception for ci (element-plus#2832)
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun authored Aug 4, 2021
1 parent b05b9c1 commit 0b0f7a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/theme-chalk/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ export const distFolder = './lib'

/**
* compile theme-chalk scss & minify
* not use sass.sync().on('error', sass.logError) to throw exception
* @returns
*/
function compile() {
return gulp
.src('./src/*.scss')
.pipe(sass.sync().on('error', sass.logError))
.pipe(sass.sync())
.pipe(autoprefixer({ cascade: false }))
.pipe(
cleanCSS({}, details => {
Expand Down

0 comments on commit 0b0f7a8

Please sign in to comment.