Remove banner
parent
48e44e25aa
commit
6453f15d70
|
@ -59,7 +59,6 @@
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-unicorn": "^44.0.2",
|
"eslint-plugin-unicorn": "^44.0.2",
|
||||||
"postcss": "^8.4.19",
|
"postcss": "^8.4.19",
|
||||||
"postcss-banner": "^4.0.1",
|
|
||||||
"postcss-calc": "^8.2.4",
|
"postcss-calc": "^8.2.4",
|
||||||
"postcss-css-variables": "^0.18.0",
|
"postcss-css-variables": "^0.18.0",
|
||||||
"postcss-csso": "^6.0.1",
|
"postcss-csso": "^6.0.1",
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
const package_ = require("./package.json");
|
|
||||||
const bannerText = `${package_.name} v${package_.version}`;
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
map: {
|
map: {
|
||||||
inline: false,
|
inline: false,
|
||||||
|
@ -10,10 +7,5 @@ module.exports = {
|
||||||
require("postcss-calc"),
|
require("postcss-calc"),
|
||||||
require("autoprefixer"),
|
require("autoprefixer"),
|
||||||
require("postcss-csso"),
|
require("postcss-csso"),
|
||||||
require("postcss-banner")({
|
|
||||||
banner: bannerText,
|
|
||||||
important: true,
|
|
||||||
inline: true,
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import * as path from "node:path";
|
import * as path from "node:path";
|
||||||
import package_ from "./package.json";
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
|
@ -19,7 +18,6 @@ export default defineConfig({
|
||||||
if (assetInfo.name === "style.css") return "shareon.min.css";
|
if (assetInfo.name === "style.css") return "shareon.min.css";
|
||||||
return assetInfo.name;
|
return assetInfo.name;
|
||||||
},
|
},
|
||||||
banner: `/*! ${package_.name} v${package_.version} */`,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue