Skip to content

Commit c59c43e

Browse files
authored
chore: cleanup unused rollup and postcss deps (#550)
1 parent a271537 commit c59c43e

File tree

4 files changed

+16
-260
lines changed

4 files changed

+16
-260
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
const postcssNesting = require('postcss-nesting');
21
const postcssAddFallback = require('../../lib/postcss-add-fallback/index.js');
32
const postcssCSStoESM = require('../../lib/postcss-css-to-esm/index.js');
43
const cssnano = require('cssnano');
54

65
module.exports = {
76
plugins: [
8-
postcssNesting(),
97
postcssAddFallback({importFrom: "./dist/css/themes/sap_fiori_3/parameters-bundle.css"}),
10-
cssnano({preset: [
11-
'default', {
12-
mergeLonghand: false, // https://github.com/cssnano/cssnano/issues/675
13-
mergeRules: false, // https://github.com/cssnano/cssnano/issues/730
14-
},
15-
]}, ),
8+
cssnano({
9+
preset: [
10+
'default', {
11+
mergeLonghand: false, // https://github.com/cssnano/cssnano/issues/675
12+
mergeRules: false, // https://github.com/cssnano/cssnano/issues/730
13+
},
14+
]
15+
}),
1616
postcssCSStoESM(),
1717
]
1818
};

packages/main/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@
126126
"postcss": "^7.0.14",
127127
"postcss-cli": "^6.1.1",
128128
"postcss-combine-duplicated-selectors": "^7.0.0",
129-
"postcss-csso": "^3.0.0",
130129
"postcss-import": "^12.0.1",
131-
"postcss-nesting": "^7.0.0",
132130
"puppeteer": "^1.11.0",
133131
"rimraf": "^2.6.2",
134132
"rollup": "^1.1.2",
@@ -138,7 +136,6 @@
138136
"rollup-plugin-less": "^1.1.2",
139137
"rollup-plugin-node-resolve": "^4.0.0",
140138
"rollup-plugin-notify": "^1.1.0",
141-
"rollup-plugin-postcss": "^2.0.3",
142139
"rollup-plugin-string": "^2.0.2",
143140
"rollup-plugin-terser": "^4.0.3",
144141
"rollup-plugin-url": "^2.2.0",

packages/main/rollup.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ import url from "rollup-plugin-url";
77
import { terser } from "rollup-plugin-terser";
88
import notify from 'rollup-plugin-notify';
99
import filesize from 'rollup-plugin-filesize';
10-
import postcss from 'rollup-plugin-postcss';
11-
import postcssImport from 'postcss-import';
12-
import postcssNesting from 'postcss-nesting';
13-
import csso from 'postcss-csso';
14-
1510

1611
const DIST = path.normalize("dist");
1712
const DIST_PLAYGROUND = path.normalize("dist/resources/sap/ui/webcomponents/main");

0 commit comments

Comments
 (0)