Skip to content

Commit

Permalink
chore: Publish v0.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 23, 2022
1 parent c60c0f5 commit b1bf39d
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Built files
*.js
*.test.js
!binding.js
*.map
*.d.ts
Expand Down
15 changes: 15 additions & 0 deletions packages/css/lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.minifySync = exports.minify = void 0;
const binding = require("./binding");
async function minify(content, options) {
return binding.minify(content, toBuffer(options));
}
exports.minify = minify;
function minifySync(content, options) {
return binding.minifySync(content, toBuffer(options));
}
exports.minifySync = minifySync;
function toBuffer(t) {
return Buffer.from(JSON.stringify(t));
}
2 changes: 1 addition & 1 deletion packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/css",
"version": "0.0.13",
"version": "0.0.14",
"description": "Super-fast alternative for postcss",
"homepage": "https://swc.rs",
"main": "./lib/index.js",
Expand Down
15 changes: 15 additions & 0 deletions packages/html/lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.minifySync = exports.minify = void 0;
const binding = require("./binding");
async function minify(content, options) {
return binding.minify(content, toBuffer(options));
}
exports.minify = minify;
function minifySync(content, options) {
return binding.minifySync(content, toBuffer(options));
}
exports.minifySync = minifySync;
function toBuffer(t) {
return Buffer.from(JSON.stringify(t));
}
2 changes: 1 addition & 1 deletion packages/html/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/html",
"version": "0.0.13",
"version": "0.0.14",
"description": "Super-fast alternative for posthtml",
"homepage": "https://swc.rs",
"main": "./lib/index.js",
Expand Down

0 comments on commit b1bf39d

Please sign in to comment.