Skip to content

Commit 2fce6b8

Browse files
authored
Allow "stylus" as additional file ending (#2923)
I found that the file extension and the language code (in Vue files) "stylus" (instead of "styl") becomes more common (e.g. RubyMine suggests it in autocompletion), so this PR simply adds support for using "stylus" in addition to "styl".
1 parent a3c1d75 commit 2fce6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/rules/stylus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const {
88
} = require('../config')
99

1010
module.exports = canProcess('stylus-loader', (resolvedPath) =>
11-
getStyleRule(/\.(styl)(\.erb)?$/i, [
11+
getStyleRule(/\.(styl(us)?)(\.erb)?$/i, [
1212
{
1313
loader: resolvedPath,
1414
options: {

0 commit comments

Comments
 (0)