8000 optimization level is taken from env now · rusongyu/less.js@06bf75c · GitHub
[go: up one dir, main page]

Skip to content

Commit 06bf75c

Browse files
author
cloudhead
committed
optimization level is taken from env now
1 parent 823d69f commit 06bf75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/less/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ less.Parser = function Parser(env) {
155155
}
156156
}
157157

158+
this.env = env || {};
158159

159160
// The optimization level dictates the thoroughness of the parser,
160161
// the lower the number, the less nodes it will create in the tree.
161162
// This could matter for debugging, or if you want to access
162163
// the individual nodes in the tree.
163-
this.optimization = 2;
164+
this.optimization = this.env.optimization || 2;
164165

165-
this.env = env || {};
166166

167167
//
168168
// The Parser

0 commit comments

Comments
 (0)
0