cssnano-preset-default 4.0.0-rc.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -31
- package/dist/index.js +4 -6
- package/package.json +34 -34
- package/dist/lib/styleCache.js +0 -32
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
- [Plugins](#plugins)
|
|
16
16
|
|
|
17
|
-
- [css-declaration-sorter](#css-declaration-sorter)
|
|
17
|
+
- [css-declaration-sorter (external)](#css-declaration-sorter-external)
|
|
18
18
|
- [cssnano-util-raw-cache](#cssnano-util-raw-cache)
|
|
19
19
|
- [postcss-calc (external)](#postcss-calc-external)
|
|
20
20
|
- [postcss-colormin](#postcss-colormin)
|
|
@@ -100,13 +100,13 @@ Note that you may wish to publish your own preset to npm for reusability, should
|
|
|
100
100
|
|
|
101
101
|
## Plugins
|
|
102
102
|
|
|
103
|
-
### [`css-declaration-sorter`](https://github.com/Siilwyn/css-declaration-sorter
|
|
103
|
+
### [`css-declaration-sorter`](https://github.com/Siilwyn/css-declaration-sorter) (external)
|
|
104
104
|
|
|
105
|
-
>
|
|
105
|
+
> Sorts CSS declarations fast and automatically in a certain order.
|
|
106
106
|
|
|
107
107
|
This plugin is loaded with its default configuration.
|
|
108
108
|
|
|
109
|
-
### [`cssnano-util-raw-cache`](https://github.com/
|
|
109
|
+
### [`cssnano-util-raw-cache`](https://github.com/cssnano/cssnano/tree/master/packages/cssnano-util-raw-cache)
|
|
110
110
|
|
|
111
111
|
> Manages the raw value formatting for generated AST nodes.
|
|
112
112
|
|
|
@@ -118,13 +118,13 @@ This plugin is loaded with its default configuration.
|
|
|
118
118
|
|
|
119
119
|
This plugin is loaded with its default configuration.
|
|
120
120
|
|
|
121
|
-
### [`postcss-colormin`](https://github.com/
|
|
121
|
+
### [`postcss-colormin`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-colormin)
|
|
122
122
|
|
|
123
123
|
> Minify colors in your CSS files with PostCSS.
|
|
124
124
|
|
|
125
125
|
This plugin is loaded with its default configuration.
|
|
126
126
|
|
|
127
|
-
### [`postcss-convert-values`](https://github.com/
|
|
127
|
+
### [`postcss-convert-values`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-convert-values)
|
|
128
128
|
|
|
129
129
|
> Convert values with PostCSS (e.g. ms -> s)
|
|
130
130
|
|
|
@@ -136,67 +136,67 @@ This plugin is loaded with the following configuration:
|
|
|
136
136
|
}
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
### [`postcss-discard-comments`](https://github.com/
|
|
139
|
+
### [`postcss-discard-comments`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-comments)
|
|
140
140
|
|
|
141
141
|
> Discard comments in your CSS files with PostCSS.
|
|
142
142
|
|
|
143
143
|
This plugin is loaded with its default configuration.
|
|
144
144
|
|
|
145
|
-
### [`postcss-discard-duplicates`](https://github.com/
|
|
145
|
+
### [`postcss-discard-duplicates`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-duplicates)
|
|
146
146
|
|
|
147
147
|
> Discard duplicate rules in your CSS files with PostCSS.
|
|
148
148
|
|
|
149
149
|
This plugin is loaded with its default configuration.
|
|
150
150
|
|
|
151
|
-
### [`postcss-discard-empty`](https://github.com/
|
|
151
|
+
### [`postcss-discard-empty`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-empty)
|
|
152
152
|
|
|
153
153
|
> Discard empty rules and values with PostCSS.
|
|
154
154
|
|
|
155
155
|
This plugin is loaded with its default configuration.
|
|
156
156
|
|
|
157
|
-
### [`postcss-discard-overridden`](https://github.com/
|
|
157
|
+
### [`postcss-discard-overridden`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-overridden)
|
|
158
158
|
|
|
159
159
|
> PostCSS plugin to discard overridden @keyframes or @counter-style.
|
|
160
160
|
|
|
161
161
|
This plugin is loaded with its default configuration.
|
|
162
162
|
|
|
163
|
-
### [`postcss-merge-longhand`](https://github.com/
|
|
163
|
+
### [`postcss-merge-longhand`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-merge-longhand)
|
|
164
164
|
|
|
165
165
|
> Merge longhand properties into shorthand with PostCSS.
|
|
166
166
|
|
|
167
167
|
This plugin is loaded with its default configuration.
|
|
168
168
|
|
|
169
|
-
### [`postcss-merge-rules`](https://github.com/
|
|
169
|
+
### [`postcss-merge-rules`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-merge-rules)
|
|
170
170
|
|
|
171
171
|
> Merge CSS rules with PostCSS.
|
|
172
172
|
|
|
173
173
|
This plugin is loaded with its default configuration.
|
|
174
174
|
|
|
175
|
-
### [`postcss-minify-font-values`](https://github.com/
|
|
175
|
+
### [`postcss-minify-font-values`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-minify-font-values)
|
|
176
176
|
|
|
177
177
|
> Minify font declarations with PostCSS
|
|
178
178
|
|
|
179
179
|
This plugin is loaded with its default configuration.
|
|
180
180
|
|
|
181
|
-
### [`postcss-minify-gradients`](https://github.com/
|
|
181
|
+
### [`postcss-minify-gradients`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-minify-gradients)
|
|
182
182
|
|
|
183
183
|
> Minify gradient parameters with PostCSS.
|
|
184
184
|
|
|
185
185
|
This plugin is loaded with its default configuration.
|
|
186
186
|
|
|
187
|
-
### [`postcss-minify-params`](https://github.com/
|
|
187
|
+
### [`postcss-minify-params`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-minify-params)
|
|
188
188
|
|
|
189
189
|
> Minify at-rule params with PostCSS
|
|
190
190
|
|
|
191
191
|
This plugin is loaded with its default configuration.
|
|
192
192
|
|
|
193
|
-
### [`postcss-minify-selectors`](https://github.com/
|
|
193
|
+
### [`postcss-minify-selectors`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-minify-selectors)
|
|
194
194
|
|
|
195
195
|
> Minify selectors with PostCSS.
|
|
196
196
|
|
|
197
197
|
This plugin is loaded with its default configuration.
|
|
198
198
|
|
|
199
|
-
### [`postcss-normalize-charset`](https://github.com/
|
|
199
|
+
### [`postcss-normalize-charset`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-charset)
|
|
200
200
|
|
|
201
201
|
> Add necessary or remove extra charset with PostCSS
|
|
202
202
|
|
|
@@ -208,79 +208,79 @@ This plugin is loaded with the following configuration:
|
|
|
208
208
|
}
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
### [`postcss-normalize-display-values`](https://github.com/
|
|
211
|
+
### [`postcss-normalize-display-values`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-display-values)
|
|
212
212
|
|
|
213
213
|
> Normalize multiple value display syntaxes into single values.
|
|
214
214
|
|
|
215
215
|
This plugin is loaded with its default configuration.
|
|
216
216
|
|
|
217
|
-
### [`postcss-normalize-positions`](https://github.com/
|
|
217
|
+
### [`postcss-normalize-positions`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-positions)
|
|
218
218
|
|
|
219
219
|
> Normalize keyword values for position into length values.
|
|
220
220
|
|
|
221
221
|
This plugin is loaded with its default configuration.
|
|
222
222
|
|
|
223
|
-
### [`postcss-normalize-repeat-style`](https://github.com/
|
|
223
|
+
### [`postcss-normalize-repeat-style`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-repeat-style)
|
|
224
224
|
|
|
225
225
|
> Convert two value syntax for repeat-style into one value.
|
|
226
226
|
|
|
227
227
|
This plugin is loaded with its default configuration.
|
|
228
228
|
|
|
229
|
-
### [`postcss-normalize-string`](https://github.com/
|
|
229
|
+
### [`postcss-normalize-string`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-string)
|
|
230
230
|
|
|
231
231
|
> Normalize wrapping quotes for CSS string literals.
|
|
232
232
|
|
|
233
233
|
This plugin is loaded with its default configuration.
|
|
234
234
|
|
|
235
|
-
### [`postcss-normalize-timing-functions`](https://github.com/
|
|
235
|
+
### [`postcss-normalize-timing-functions`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-timing-functions)
|
|
236
236
|
|
|
237
237
|
> Normalize CSS animation/transition timing functions.
|
|
238
238
|
|
|
239
239
|
This plugin is loaded with its default configuration.
|
|
240
240
|
|
|
241
|
-
### [`postcss-normalize-unicode`](https://github.com/
|
|
241
|
+
### [`postcss-normalize-unicode`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-unicode)
|
|
242
242
|
|
|
243
243
|
> Normalize unicode-range descriptors, and can convert to wildcard ranges.
|
|
244
244
|
|
|
245
245
|
This plugin is loaded with its default configuration.
|
|
246
246
|
|
|
247
|
-
### [`postcss-normalize-url`](https://github.com/
|
|
247
|
+
### [`postcss-normalize-url`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-url)
|
|
248
248
|
|
|
249
249
|
> Normalize URLs with PostCSS
|
|
250
250
|
|
|
251
251
|
This plugin is loaded with its default configuration.
|
|
252
252
|
|
|
253
|
-
### [`postcss-normalize-whitespace`](https://github.com/
|
|
253
|
+
### [`postcss-normalize-whitespace`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-whitespace)
|
|
254
254
|
|
|
255
255
|
> Trim whitespace inside and around CSS rules & declarations.
|
|
256
256
|
|
|
257
257
|
This plugin is loaded with its default configuration.
|
|
258
258
|
|
|
259
|
-
### [`postcss-ordered-values`](https://github.com/
|
|
259
|
+
### [`postcss-ordered-values`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-ordered-values)
|
|
260
260
|
|
|
261
261
|
> Ensure values are ordered consistently in your CSS.
|
|
262
262
|
|
|
263
263
|
This plugin is loaded with its default configuration.
|
|
264
264
|
|
|
265
|
-
### [`postcss-reduce-initial`](https://github.com/
|
|
265
|
+
### [`postcss-reduce-initial`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-reduce-initial)
|
|
266
266
|
|
|
267
267
|
> Reduce initial definitions to the actual initial value, where possible.
|
|
268
268
|
|
|
269
269
|
This plugin is loaded with its default configuration.
|
|
270
270
|
|
|
271
|
-
### [`postcss-reduce-transforms`](https://github.com/
|
|
271
|
+
### [`postcss-reduce-transforms`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-reduce-transforms)
|
|
272
272
|
|
|
273
273
|
> Reduce transform functions with PostCSS.
|
|
274
274
|
|
|
275
275
|
This plugin is loaded with its default configuration.
|
|
276
276
|
|
|
277
|
-
### [`postcss-svgo`](https://github.com/
|
|
277
|
+
### [`postcss-svgo`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-svgo)
|
|
278
278
|
|
|
279
279
|
> Optimise inline SVG with PostCSS.
|
|
280
280
|
|
|
281
281
|
This plugin is loaded with its default configuration.
|
|
282
282
|
|
|
283
|
-
### [`postcss-unique-selectors`](https://github.com/
|
|
283
|
+
### [`postcss-unique-selectors`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-unique-selectors)
|
|
284
284
|
|
|
285
285
|
> Ensure CSS selectors are unique.
|
|
286
286
|
|
|
@@ -289,9 +289,10 @@ This plugin is loaded with its default configuration.
|
|
|
289
289
|
|
|
290
290
|
## Contributors
|
|
291
291
|
|
|
292
|
-
See [CONTRIBUTORS.md](https://github.com/
|
|
292
|
+
See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
|
|
293
293
|
|
|
294
294
|
|
|
295
295
|
## License
|
|
296
296
|
|
|
297
297
|
MIT © [Ben Briggs](http://beneb.info)
|
|
298
|
+
|
package/dist/index.js
CHANGED
|
@@ -123,7 +123,7 @@ var _cssnanoUtilRawCache2 = _interopRequireDefault(_cssnanoUtilRawCache);
|
|
|
123
123
|
|
|
124
124
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
const defaultOpts = {
|
|
127
127
|
convertValues: {
|
|
128
128
|
length: false
|
|
129
129
|
},
|
|
@@ -144,12 +144,10 @@ var defaultOpts = {
|
|
|
144
144
|
* this preset require only minimal configuration.
|
|
145
145
|
*/
|
|
146
146
|
|
|
147
|
-
function defaultPreset() {
|
|
148
|
-
|
|
147
|
+
function defaultPreset(opts = {}) {
|
|
148
|
+
const options = Object.assign({}, defaultOpts, opts);
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
var plugins = [[_postcssDiscardComments2.default, options.discardComments], [_postcssMinifyGradients2.default, options.minifyGradients], [_postcssReduceInitial2.default, options.reduceInitial], [_postcssSvgo2.default, options.svgo], [_postcssNormalizeDisplayValues2.default, options.normalizeDisplayValues], [_postcssReduceTransforms2.default, options.reduceTransforms], [_postcssColormin2.default, options.colormin], [_postcssNormalizeTimingFunctions2.default, options.normalizeTimingFunctions], [_postcssCalc2.default, options.calc], [_postcssConvertValues2.default, options.convertValues], [_postcssOrderedValues2.default, options.orderedValues], [_postcssMinifySelectors2.default, options.minifySelectors], [_postcssMinifyParams2.default, options.minifyParams], [_postcssNormalizeCharset2.default, options.normalizeCharset], [_postcssDiscardOverridden2.default, options.discardOverridden], [_postcssNormalizeString2.default, options.normalizeString], [_postcssNormalizeUnicode2.default, options.normalizeUnicode], [_postcssMinifyFontValues2.default, options.minifyFontValues], [_postcssNormalizeUrl2.default, options.normalizeUrl], [_postcssNormalizeRepeatStyle2.default, options.normalizeRepeatStyle], [_postcssNormalizePositions2.default, options.normalizePositions], [_postcssNormalizeWhitespace2.default, options.normalizeWhitespace], [_postcssMergeLonghand2.default, options.mergeLonghand], [_postcssDiscardDuplicates2.default, options.discardDuplicates], [_postcssMergeRules2.default, options.mergeRules], [_postcssDiscardEmpty2.default, options.discardEmpty], [_postcssUniqueSelectors2.default, options.uniqueSelectors], [_cssDeclarationSorter2.default, options.cssDeclarationSorter], [_cssnanoUtilRawCache2.default, options.rawCache]];
|
|
150
|
+
const plugins = [[_postcssDiscardComments2.default, options.discardComments], [_postcssMinifyGradients2.default, options.minifyGradients], [_postcssReduceInitial2.default, options.reduceInitial], [_postcssSvgo2.default, options.svgo], [_postcssNormalizeDisplayValues2.default, options.normalizeDisplayValues], [_postcssReduceTransforms2.default, options.reduceTransforms], [_postcssColormin2.default, options.colormin], [_postcssNormalizeTimingFunctions2.default, options.normalizeTimingFunctions], [_postcssCalc2.default, options.calc], [_postcssConvertValues2.default, options.convertValues], [_postcssOrderedValues2.default, options.orderedValues], [_postcssMinifySelectors2.default, options.minifySelectors], [_postcssMinifyParams2.default, options.minifyParams], [_postcssNormalizeCharset2.default, options.normalizeCharset], [_postcssDiscardOverridden2.default, options.discardOverridden], [_postcssNormalizeString2.default, options.normalizeString], [_postcssNormalizeUnicode2.default, options.normalizeUnicode], [_postcssMinifyFontValues2.default, options.minifyFontValues], [_postcssNormalizeUrl2.default, options.normalizeUrl], [_postcssNormalizeRepeatStyle2.default, options.normalizeRepeatStyle], [_postcssNormalizePositions2.default, options.normalizePositions], [_postcssNormalizeWhitespace2.default, options.normalizeWhitespace], [_postcssMergeLonghand2.default, options.mergeLonghand], [_postcssDiscardDuplicates2.default, options.discardDuplicates], [_postcssMergeRules2.default, options.mergeRules], [_postcssDiscardEmpty2.default, options.discardEmpty], [_postcssUniqueSelectors2.default, options.uniqueSelectors], [_cssDeclarationSorter2.default, options.cssDeclarationSorter], [_cssnanoUtilRawCache2.default, options.rawCache]];
|
|
153
151
|
|
|
154
152
|
return { plugins };
|
|
155
153
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cssnano-preset-default",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"description": "Safe defaults for cssnano which require minimal configuration.",
|
|
6
6
|
"scripts": {
|
|
@@ -12,52 +12,52 @@
|
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"css-declaration-sorter": "^
|
|
16
|
-
"cssnano-util-raw-cache": "^4.0.0
|
|
15
|
+
"css-declaration-sorter": "^3.0.0",
|
|
16
|
+
"cssnano-util-raw-cache": "^4.0.0",
|
|
17
17
|
"postcss": "^6.0.0",
|
|
18
18
|
"postcss-calc": "^6.0.0",
|
|
19
|
-
"postcss-colormin": "^4.0.0
|
|
20
|
-
"postcss-convert-values": "^4.0.0
|
|
21
|
-
"postcss-discard-comments": "^4.0.0
|
|
22
|
-
"postcss-discard-duplicates": "^4.0.0
|
|
23
|
-
"postcss-discard-empty": "^4.0.0
|
|
24
|
-
"postcss-discard-overridden": "^4.0.0
|
|
25
|
-
"postcss-merge-longhand": "^4.0.0
|
|
26
|
-
"postcss-merge-rules": "^4.0.0
|
|
27
|
-
"postcss-minify-font-values": "^4.0.0
|
|
28
|
-
"postcss-minify-gradients": "^4.0.0
|
|
29
|
-
"postcss-minify-params": "^4.0.0
|
|
30
|
-
"postcss-minify-selectors": "^4.0.0
|
|
31
|
-
"postcss-normalize-charset": "^4.0.0
|
|
32
|
-
"postcss-normalize-display-values": "^4.0.0
|
|
33
|
-
"postcss-normalize-positions": "^4.0.0
|
|
34
|
-
"postcss-normalize-repeat-style": "^4.0.0
|
|
35
|
-
"postcss-normalize-string": "^4.0.0
|
|
36
|
-
"postcss-normalize-timing-functions": "^4.0.0
|
|
37
|
-
"postcss-normalize-unicode": "^4.0.0
|
|
38
|
-
"postcss-normalize-url": "^4.0.0
|
|
39
|
-
"postcss-normalize-whitespace": "^4.0.0
|
|
40
|
-
"postcss-ordered-values": "^4.0.0
|
|
41
|
-
"postcss-reduce-initial": "^4.0.0
|
|
42
|
-
"postcss-reduce-transforms": "^4.0.0
|
|
43
|
-
"postcss-svgo": "^4.0.0
|
|
44
|
-
"postcss-unique-selectors": "^4.0.0
|
|
19
|
+
"postcss-colormin": "^4.0.0",
|
|
20
|
+
"postcss-convert-values": "^4.0.0",
|
|
21
|
+
"postcss-discard-comments": "^4.0.0",
|
|
22
|
+
"postcss-discard-duplicates": "^4.0.0",
|
|
23
|
+
"postcss-discard-empty": "^4.0.0",
|
|
24
|
+
"postcss-discard-overridden": "^4.0.0",
|
|
25
|
+
"postcss-merge-longhand": "^4.0.0",
|
|
26
|
+
"postcss-merge-rules": "^4.0.0",
|
|
27
|
+
"postcss-minify-font-values": "^4.0.0",
|
|
28
|
+
"postcss-minify-gradients": "^4.0.0",
|
|
29
|
+
"postcss-minify-params": "^4.0.0",
|
|
30
|
+
"postcss-minify-selectors": "^4.0.0",
|
|
31
|
+
"postcss-normalize-charset": "^4.0.0",
|
|
32
|
+
"postcss-normalize-display-values": "^4.0.0",
|
|
33
|
+
"postcss-normalize-positions": "^4.0.0",
|
|
34
|
+
"postcss-normalize-repeat-style": "^4.0.0",
|
|
35
|
+
"postcss-normalize-string": "^4.0.0",
|
|
36
|
+
"postcss-normalize-timing-functions": "^4.0.0",
|
|
37
|
+
"postcss-normalize-unicode": "^4.0.0",
|
|
38
|
+
"postcss-normalize-url": "^4.0.0",
|
|
39
|
+
"postcss-normalize-whitespace": "^4.0.0",
|
|
40
|
+
"postcss-ordered-values": "^4.0.0",
|
|
41
|
+
"postcss-reduce-initial": "^4.0.0",
|
|
42
|
+
"postcss-reduce-transforms": "^4.0.0",
|
|
43
|
+
"postcss-svgo": "^4.0.0",
|
|
44
|
+
"postcss-unique-selectors": "^4.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"babel-cli": "^6.0.0",
|
|
48
|
-
"cross-env": "^
|
|
48
|
+
"cross-env": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"author": {
|
|
51
51
|
"name": "Ben Briggs",
|
|
52
52
|
"email": "beneb.info@gmail.com",
|
|
53
53
|
"url": "http://beneb.info"
|
|
54
54
|
},
|
|
55
|
-
"repository": "
|
|
56
|
-
"homepage": "https://github.com/
|
|
55
|
+
"repository": "cssnano/cssnano",
|
|
56
|
+
"homepage": "https://github.com/cssnano/cssnano",
|
|
57
57
|
"bugs": {
|
|
58
|
-
"url": "https://github.com/
|
|
58
|
+
"url": "https://github.com/cssnano/cssnano/issues"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
|
-
"node": ">=
|
|
61
|
+
"node": ">=6.9.0"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/dist/lib/styleCache.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _postcss = require('postcss');
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* Temporary hack for PostCSS 5.x.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
exports.default = (0, _postcss.plugin)('postcss-raw-cache', function () {
|
|
14
|
-
var cache = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
15
|
-
|
|
16
|
-
return function (css, result) {
|
|
17
|
-
result.root.rawCache = Object.assign({}, {
|
|
18
|
-
colon: ':',
|
|
19
|
-
indent: '',
|
|
20
|
-
beforeDecl: '',
|
|
21
|
-
beforeRule: '',
|
|
22
|
-
beforeOpen: '',
|
|
23
|
-
beforeClose: '',
|
|
24
|
-
beforeComment: '',
|
|
25
|
-
after: '',
|
|
26
|
-
emptyBody: '',
|
|
27
|
-
commentLeft: '',
|
|
28
|
-
commentRight: ''
|
|
29
|
-
}, cache);
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
module.exports = exports['default'];
|