From 1bb6394507f0271bca6e87005a8a82159fa3ee9c Mon Sep 17 00:00:00 2001 From: Christian Norrman Date: Thu, 16 Aug 2018 00:05:29 +0200 Subject: [PATCH] Fix: VSCode syntax highlight with PostCSS in Vue Component style tag (#1897) This fixes the issue #1894. Now it compiles the CSS file containing the parsed version of the PostCSS code within Vue Components inline style tags. As well as working with the VSCode Vetur extension for the syntax highlighting. --- src/Parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Parser.js b/src/Parser.js index db1305edbe3..013aecf600b 100644 --- a/src/Parser.js +++ b/src/Parser.js @@ -28,6 +28,7 @@ class Parser { this.registerExtension('css', './assets/CSSAsset'); this.registerExtension('pcss', './assets/CSSAsset'); + this.registerExtension('postcss', './assets/CSSAsset'); this.registerExtension('styl', './assets/StylusAsset'); this.registerExtension('stylus', './assets/StylusAsset'); this.registerExtension('less', './assets/LESSAsset'); @@ -82,4 +83,4 @@ class Parser { } } -module.exports = Parser; +module.exports = Parser; \ No newline at end of file