Skip to content

Commit

Permalink
add support for suffix stylus
Browse files Browse the repository at this point in the history
is .vue file must write <style lang="stylus"> then vuetr syntax highlight is right, but now , taro only support write lang="styl" .
  • Loading branch information
gcxfd authored and Chen-jj committed Aug 20, 2020
1 parent 315014f commit d5ff618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/taro-helper/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const processTypeMap: IProcessTypeMap = {
}
}

export const CSS_EXT: string[] = ['.css', '.scss', '.sass', '.less', '.styl', '.wxss', '.acss']
export const CSS_EXT: string[] = ['.css', '.scss', '.sass', '.less', '.styl','.stylus', '.wxss', '.acss']
export const SCSS_EXT: string[] = ['.scss']
export const JS_EXT: string[] = ['.js', '.jsx']
export const TS_EXT: string[] = ['.ts', '.tsx']
Expand All @@ -94,8 +94,8 @@ export const REG_SASS = /\.(s[ac]ss)$/
export const REG_SASS_SASS = /\.sass$/
export const REG_SASS_SCSS = /\.scss$/
export const REG_LESS = /\.less$/
export const REG_STYLUS = /\.styl$/
export const REG_STYLE = /\.(css|scss|sass|less|styl|wxss|acss|ttss|jxss|qss)(\?.*)?$/
export const REG_STYLUS = /\.styl(us)?$/
export const REG_STYLE = /\.(css|scss|sass|less|styl|stylus|wxss|acss|ttss|jxss|qss)(\?.*)?$/
export const REG_CSS = /\.(css|wxss|acss|ttss)(\?.*)?$/
export const REG_MEDIA = /\.(mp4|webm|ogg|mp3|m4a|wav|flac|aac)(\?.*)?$/
export const REG_IMAGE = /\.(png|jpe?g|gif|bpm|svg|webp)(\?.*)?$/
Expand Down

0 comments on commit d5ff618

Please sign in to comment.