Permalink
Browse files

Reduce size bundle for browser

  • Loading branch information...
ai committed Aug 24, 2017
1 parent c8a7ec3 commit 150edaa42f6d7ede73d8c72be9909f0a0f87a70f
Showing with 5 additions and 3 deletions.
  1. +2 −2 lib/css-syntax-error.es6
  2. +3 −1 package.json
View
@@ -168,14 +168,14 @@ class CssSyntaxError {
let maxWidth = String(end).length;
function mark(text) {
if ( color ) {
if ( color && chalk.red ) {
return chalk.red.bold(text);
} else {
return text;
}
}
function aside(text) {
if ( color ) {
if ( color && chalk.gray ) {
return chalk.gray(text);
} else {
return text;
View
@@ -69,12 +69,14 @@
"lint-staged"
],
"browser": {
"supports-color": false,
"chalk": false,
"fs": false
},
"size-limit": [
{
"path": "build/lib/postcss.js",
"limit": "36 KB"
"limit": "28 KB"
}
],
"eslintConfig": {

0 comments on commit 150edaa

Please sign in to comment.