Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
645 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.default = void 0;
|
---|
| 7 |
|
---|
| 8 | var _decl = _interopRequireDefault(require("./lib/decl"));
|
---|
| 9 |
|
---|
| 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
| 11 |
|
---|
| 12 | function pluginCreator() {
|
---|
| 13 | return {
|
---|
| 14 | postcssPlugin: 'postcss-merge-longhand',
|
---|
| 15 |
|
---|
| 16 | OnceExit(css) {
|
---|
| 17 | css.walkRules(rule => {
|
---|
| 18 | _decl.default.forEach(p => {
|
---|
| 19 | p.explode(rule);
|
---|
| 20 | p.merge(rule);
|
---|
| 21 | });
|
---|
| 22 | });
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | };
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | pluginCreator.postcss = true;
|
---|
| 29 | var _default = pluginCreator;
|
---|
| 30 | exports.default = _default;
|
---|
| 31 | module.exports = exports.default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.