Remove now unused plugins
parent
c5e4ab0bd7
commit
0591f86461
|
@ -41,7 +41,6 @@
|
||||||
"postversion": "pnpm run build"
|
"postversion": "pnpm run build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nickkaramoff/rollup-plugin-consts": "^1.1.0",
|
|
||||||
"@rollup/plugin-buble": "^0.21.3",
|
"@rollup/plugin-buble": "^0.21.3",
|
||||||
"@rollup/plugin-strip": "^2.1.0",
|
"@rollup/plugin-strip": "^2.1.0",
|
||||||
"@size-limit/preset-small-lib": "^7.0.5",
|
"@size-limit/preset-small-lib": "^7.0.5",
|
||||||
|
@ -57,7 +56,6 @@
|
||||||
"postcss-banner": "^4.0.1",
|
"postcss-banner": "^4.0.1",
|
||||||
"postcss-calc": "^8.2.3",
|
"postcss-calc": "^8.2.3",
|
||||||
"postcss-css-variables": "^0.18.0",
|
"postcss-css-variables": "^0.18.0",
|
||||||
"postcss-mixins": "^9.0.1",
|
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"rollup": "^2.67.0",
|
"rollup": "^2.67.0",
|
||||||
"rollup-plugin-postcss": "^4.0.2",
|
"rollup-plugin-postcss": "^4.0.2",
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { join, resolve } from "path";
|
import { join, resolve } from "path";
|
||||||
|
|
||||||
import buble from "@rollup/plugin-buble";
|
import buble from "@rollup/plugin-buble";
|
||||||
import consts from "@nickkaramoff/rollup-plugin-consts";
|
|
||||||
import strip from "@rollup/plugin-strip";
|
import strip from "@rollup/plugin-strip";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import { terser } from "rollup-plugin-terser";
|
import { terser } from "rollup-plugin-terser";
|
||||||
|
@ -11,10 +10,7 @@ const banner = require("postcss-banner");
|
||||||
const calc = require("postcss-calc");
|
const calc = require("postcss-calc");
|
||||||
const cssnano = require("cssnano");
|
const cssnano = require("cssnano");
|
||||||
const cssVariables = require("postcss-css-variables");
|
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 pkg = require("./package.json");
|
||||||
|
|
||||||
const isDev =
|
const isDev =
|
||||||
|
@ -22,15 +18,7 @@ const isDev =
|
||||||
const outputDir = resolve(".", "dist");
|
const outputDir = resolve(".", "dist");
|
||||||
const bannerText = `${pkg.name} v${pkg.version}`;
|
const bannerText = `${pkg.name} v${pkg.version}`;
|
||||||
|
|
||||||
const postcssPlugins = [
|
const postcssPlugins = [cssVariables, calc];
|
||||||
mixins({
|
|
||||||
mixins: {
|
|
||||||
networks,
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
cssVariables,
|
|
||||||
calc,
|
|
||||||
];
|
|
||||||
|
|
||||||
if (!isDev) {
|
if (!isDev) {
|
||||||
postcssPlugins.push(
|
postcssPlugins.push(
|
||||||
|
@ -47,9 +35,6 @@ if (!isDev) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getPlugins = (css) => [
|
const getPlugins = (css) => [
|
||||||
consts({
|
|
||||||
urlBuilderMap,
|
|
||||||
}),
|
|
||||||
css &&
|
css &&
|
||||||
postcss({
|
postcss({
|
||||||
extract: resolve(join(outputDir, "shareon.min.css")),
|
extract: resolve(join(outputDir, "shareon.min.css")),
|
||||||
|
|
Loading…
Reference in New Issue