Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/postcss/lib/map-generator.js
rd565449 r0c6b92a 1 1 'use strict' 2 2 3 let { dirname, relative, resolve, sep } = require('path') 3 4 let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js') 4 let { dirname, relative, resolve, sep } = require('path')5 5 let { pathToFileURL } = require('url') 6 6 … … 71 71 node = this.root.nodes[i] 72 72 if (node.type !== 'comment') continue 73 if (node.text. indexOf('# sourceMappingURL=') === 0) {73 if (node.text.startsWith('# sourceMappingURL=')) { 74 74 this.root.removeChild(i) 75 75 } 76 76 } 77 77 } else if (this.css) { 78 this.css = this.css.replace(/\n* ?\/\*#[\S\s]*?\*\/$/gm, '')78 this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, '') 79 79 } 80 80 } … … 144 144 } 145 145 146 let l ines, last146 let last, lines 147 147 this.stringify(this.root, (str, node, type) => { 148 148 this.css += str
Note:
See TracChangeset
for help on using the changeset viewer.