From e31f0fde35bf6f231b143c190e20611ae9afb047 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. --- packages/core/parcel/src/Parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/parcel/src/Parser.js b/packages/core/parcel/src/Parser.js index db1305edbe3..013aecf600b 100644 --- a/packages/core/parcel/src/Parser.js +++ b/packages/core/parcel/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