From a73b0f3f361644c83bd1f197fe774062c7c3290a Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 25 Jan 2023 18:46:58 +0100 Subject: [PATCH] Remove banner --- package.json | 1 - postcss.config.cjs | 8 -------- vite.config.js | 2 -- 3 files changed, 11 deletions(-) diff --git a/package.json b/package.json index e7be9da..4a53475 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,6 @@ "eslint-config-prettier": "^8.5.0", "eslint-plugin-unicorn": "^44.0.2", "postcss": "^8.4.19", - "postcss-banner": "^4.0.1", "postcss-calc": "^8.2.4", "postcss-css-variables": "^0.18.0", "postcss-csso": "^6.0.1", diff --git a/postcss.config.cjs b/postcss.config.cjs index 230413c..236ebe7 100644 --- a/postcss.config.cjs +++ b/postcss.config.cjs @@ -1,6 +1,3 @@ -const package_ = require("./package.json"); -const bannerText = `${package_.name} v${package_.version}`; - module.exports = { map: { inline: false, @@ -10,10 +7,5 @@ module.exports = { require("postcss-calc"), require("autoprefixer"), require("postcss-csso"), - require("postcss-banner")({ - banner: bannerText, - important: true, - inline: true, - }), ], }; diff --git a/vite.config.js b/vite.config.js index ebee818..ca4bf35 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,6 +1,5 @@ import { defineConfig } from "vite"; import * as path from "node:path"; -import package_ from "./package.json"; export default defineConfig({ build: { @@ -19,7 +18,6 @@ export default defineConfig({ if (assetInfo.name === "style.css") return "shareon.min.css"; return assetInfo.name; }, - banner: `/*! ${package_.name} v${package_.version} */`, }, }, },