You've already forked 98.css
mirror of
https://github.com/jdan/98.css.git
synced 2026-05-05 06:01:22 +09:00
add header to build
This commit is contained in:
7
build.js
7
build.js
@@ -8,14 +8,19 @@ const mkdirp = require("mkdirp");
|
||||
const path = require("path");
|
||||
const postcss = require("postcss");
|
||||
|
||||
const { homepage, version } = require("./package.json");
|
||||
|
||||
function buildCSS() {
|
||||
const input =
|
||||
`/*! 98.css v${version} - ${homepage} */\n` + fs.readFileSync("style.css");
|
||||
|
||||
return postcss()
|
||||
.use(require("postcss-inline-svg"))
|
||||
.use(require("postcss-css-variables"))
|
||||
.use(require("postcss-calc"))
|
||||
.use(require("postcss-copy")({ dest: "dist", template: "[name].[ext]" }))
|
||||
.use(require("cssnano"))
|
||||
.process(fs.readFileSync("style.css"), {
|
||||
.process(input, {
|
||||
from: "style.css",
|
||||
to: "dist/98.css",
|
||||
map: { inline: false },
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "98.css",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.9",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "98.css",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.9",
|
||||
"description": "A design system for building faithful recreations of old UIs",
|
||||
"main": "dist/98.css",
|
||||
"directories": {
|
||||
@@ -23,7 +23,7 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/jdan/98.css/issues"
|
||||
},
|
||||
"homepage": "https://github.com/jdan/98.css#readme",
|
||||
"homepage": "https://github.com/jdan/98.css",
|
||||
"devDependencies": {
|
||||
"chokidar": "^3.3.1",
|
||||
"cssnano": "^4.1.10",
|
||||
|
||||
Reference in New Issue
Block a user