Skip to content
/ pathgae Public

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

License

Notifications You must be signed in to change notification settings

qrac/pathgae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published