From 836b5287d60ea89d50d245467c5d99930a8578c5 Mon Sep 17 00:00:00 2001 From: Felipe Castro Date: Sat, 15 Oct 2016 18:08:53 -0300 Subject: [PATCH] Apply postcss transforms for tagged template css Atom will enable the syntax highlighting for css if the tagged template is named `css` (instead of `csjs`). I know this is kind of out of the scope of this repo, but it's such a minor change that it doesn't seem necessary to keep a separate project just for that. --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 2110cf7..0e8c23a 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,8 @@ module.exports = function({types: t}) { return { visitor: { TaggedTemplateExpression: function(path, state) { - if (path.node.tag.name !== 'csjs') { + if (path.node.tag.name !== 'csjs' && + path.node.tag.name !== 'css') { return false; }