qrac / pathgae

Small library to create post-build paths that preserve directory structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pathgae

About

ビルド後パスを作成するための小さなライブラリ。

  • 元パスのディレクトリ構造を保持
  • バックスラッシュをスラッシュに置換(Windows)

How To Use

$ npm install pathgae
import pathgae from "pathgae"

const result = pathgae("src/pages/index.ts", {
  outBase: "src",
  outDir: "dist",
  outExt: "js",
})

console.log(result)
// => "dist/pages/index.js"

License

  • MIT

Credit

About

Small library to create post-build paths that preserve directory structure

License:MIT License


Languages

Language:TypeScript 100.0%