From cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Mar 2019 21:01:33 +0100 Subject: remove node_modules --- node_modules/clean-css/lib/writer/simple.js | 50 ----------------------------- 1 file changed, 50 deletions(-) delete mode 100644 node_modules/clean-css/lib/writer/simple.js (limited to 'node_modules/clean-css/lib/writer/simple.js') diff --git a/node_modules/clean-css/lib/writer/simple.js b/node_modules/clean-css/lib/writer/simple.js deleted file mode 100644 index 20fde2a29..000000000 --- a/node_modules/clean-css/lib/writer/simple.js +++ /dev/null @@ -1,50 +0,0 @@ -var all = require('./helpers').all; - -function store(serializeContext, token) { - var value = typeof token == 'string' ? - token : - token[1]; - var wrap = serializeContext.wrap; - - wrap(serializeContext, value); - track(serializeContext, value); - serializeContext.output.push(value); -} - -function wrap(serializeContext, value) { - if (serializeContext.column + value.length > serializeContext.format.wrapAt) { - track(serializeContext, serializeContext.format.breakWith); - serializeContext.output.push(serializeContext.format.breakWith); - } -} - -function track(serializeContext, value) { - var parts = value.split('\n'); - - serializeContext.line += parts.length - 1; - serializeContext.column = parts.length > 1 ? 0 : (serializeContext.column + parts.pop().length); -} - -function serializeStyles(tokens, context) { - var serializeContext = { - column: 0, - format: context.options.format, - indentBy: 0, - indentWith: '', - line: 1, - output: [], - spaceAfterClosingBrace: context.options.compatibility.properties.spaceAfterClosingBrace, - store: store, - wrap: context.options.format.wrapAt ? - wrap : - function () { /* noop */ } - }; - - all(serializeContext, tokens); - - return { - styles: serializeContext.output.join('') - }; -} - -module.exports = serializeStyles; -- cgit v1.2.3