avancement planning
This commit is contained in:
+13
@@ -378,6 +378,19 @@ class LazyResult {
|
||||
if (opts.stringifier) str = opts.stringifier
|
||||
if (str.stringify) str = str.stringify
|
||||
|
||||
let rootSource = this.result.root.source
|
||||
if (
|
||||
opts.map === undefined &&
|
||||
!(rootSource && rootSource.input && rootSource.input.map)
|
||||
) {
|
||||
let result = ''
|
||||
str(this.result.root, i => {
|
||||
result += i
|
||||
})
|
||||
this.result.css = result
|
||||
return this.result
|
||||
}
|
||||
|
||||
let map = new MapGenerator(str, this.result.root, this.result.opts)
|
||||
let data = map.generate()
|
||||
this.result.css = data[0]
|
||||
|
||||
Reference in New Issue
Block a user