Skip to content

Commit

Permalink
Reduce size bundle for browser
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 24, 2017
1 parent c8a7ec3 commit 150edaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/css-syntax-error.es6
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 150edaa

Please sign in to comment.