From 0591f8646137937fa9e7de8a3a3f26f5c112819b Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Thu, 10 Feb 2022 21:17:18 +0100 Subject: [PATCH] Remove now unused plugins --- package.json | 2 -- rollup.config.js | 17 +---------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/package.json b/package.json index 1f156ad..43c864f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/rollup.config.js b/rollup.config.js index 50be708..07f652c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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")),