From 37abeef9a1af21dbfd4e795054430ac25bbf52e8 Mon Sep 17 00:00:00 2001 From: James Burgess Date: Sat, 12 Jan 2019 02:13:17 +0400 Subject: [PATCH] Improve css @import warning text (#10375) --- packages/minifier-css/minifier.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/minifier-css/minifier.js b/packages/minifier-css/minifier.js index faf7a77efa..27da755a74 100644 --- a/packages/minifier-css/minifier.js +++ b/packages/minifier-css/minifier.js @@ -144,8 +144,9 @@ const CssTools = { if (ast.nodes.some(rulesPredicate('import'))) { warnCb( ast.filename, - 'There are some @import rules those are not taking effect as ' + - 'they are required to be in the beginning of the file.' + 'There are some @import rules in the middle of a file. This ' + + 'might be a bug, as imports are only valid at the beginning of ' + + 'a file.' ); } }