From bc5a9fe6a3f2bbde79e487e11ef953da4de8e2bd Mon Sep 17 00:00:00 2001 From: Niklas Date: Wed, 10 Feb 2021 13:46:18 +0100 Subject: [PATCH] Allow "stylus" as additional file ending 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". --- package/rules/stylus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/rules/stylus.js b/package/rules/stylus.js index 8c8726a7b..807a07799 100644 --- a/package/rules/stylus.js +++ b/package/rules/stylus.js @@ -8,7 +8,7 @@ const { } = require('../config') module.exports = canProcess('stylus-loader', (resolvedPath) => - getStyleRule(/\.(styl)(\.erb)?$/i, [ + getStyleRule(/\.(styl(us)?)(\.erb)?$/i, [ { loader: resolvedPath, options: {