Начат фронтенд
This commit is contained in:
20
node_modules/postcss/lib/root.js
generated
vendored
20
node_modules/postcss/lib/root.js
generated
vendored
@@ -11,6 +11,16 @@ class Root extends Container {
|
||||
if (!this.nodes) this.nodes = []
|
||||
}
|
||||
|
||||
removeChild(child, ignore) {
|
||||
let index = this.index(child)
|
||||
|
||||
if (!ignore && index === 0 && this.nodes.length > 1) {
|
||||
this.nodes[1].raws.before = this.nodes[index].raws.before
|
||||
}
|
||||
|
||||
return super.removeChild(child)
|
||||
}
|
||||
|
||||
normalize(child, sample, type) {
|
||||
let nodes = super.normalize(child)
|
||||
|
||||
@@ -31,16 +41,6 @@ class Root extends Container {
|
||||
return nodes
|
||||
}
|
||||
|
||||
removeChild(child, ignore) {
|
||||
let index = this.index(child)
|
||||
|
||||
if (!ignore && index === 0 && this.nodes.length > 1) {
|
||||
this.nodes[1].raws.before = this.nodes[index].raws.before
|
||||
}
|
||||
|
||||
return super.removeChild(child)
|
||||
}
|
||||
|
||||
toResult(opts = {}) {
|
||||
let lazy = new LazyResult(new Processor(), this, opts)
|
||||
return lazy.stringify()
|
||||
|
||||
Reference in New Issue
Block a user