Remove now unused plugins

pull/45/head
Nikita Karamov 2022-02-10 21:17:18 +01:00
parent c5e4ab0bd7
commit 0591f86461
No known key found for this signature in database
GPG Key ID: 3C8E688C96EEB9C9
2 changed files with 1 additions and 18 deletions

View File

@ -41,7 +41,6 @@
"postversion": "pnpm run build"
},
"devDependencies": {
"@nickkaramoff/rollup-plugin-consts": "^1.1.0",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-strip": "^2.1.0",
"@size-limit/preset-small-lib": "^7.0.5",
@ -57,7 +56,6 @@
"postcss-banner": "^4.0.1",
"postcss-calc": "^8.2.3",
"postcss-css-variables": "^0.18.0",
"postcss-mixins": "^9.0.1",
"prettier": "^2.5.1",
"rollup": "^2.67.0",
"rollup-plugin-postcss": "^4.0.2",

View File

@ -1,7 +1,6 @@
import { join, resolve } from "path";
import buble from "@rollup/plugin-buble";
import consts from "@nickkaramoff/rollup-plugin-consts";
import strip from "@rollup/plugin-strip";
import postcss from "rollup-plugin-postcss";
import { terser } from "rollup-plugin-terser";
@ -11,10 +10,7 @@ const banner = require("postcss-banner");
const calc = require("postcss-calc");
const cssnano = require("cssnano");
const cssVariables = require("postcss-css-variables");
const mixins = require("postcss-mixins");
const networks = require("./src/networksMixin");
const { urlBuilderMap } = require("./src/networks");
const pkg = require("./package.json");
const isDev =
@ -22,15 +18,7 @@ const isDev =
const outputDir = resolve(".", "dist");
const bannerText = `${pkg.name} v${pkg.version}`;
const postcssPlugins = [
mixins({
mixins: {
networks,
},
}),
cssVariables,
calc,
];
const postcssPlugins = [cssVariables, calc];
if (!isDev) {
postcssPlugins.push(
@ -47,9 +35,6 @@ if (!isDev) {
}
const getPlugins = (css) => [
consts({
urlBuilderMap,
}),
css &&
postcss({
extract: resolve(join(outputDir, "shareon.min.css")),