webpack-key-parse
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

webpack-key-parse

simple function parse webpack key context string

import { parse } from "webpack-key-parse";
 
 
const key = './plugin/a/b.vue'
 
parse(key)
// {
//    ext:'.vue',
//    name: 'b',
//    base: 'b.vue',
//    dir: 'plugin/a',
//    entry: 'plugin/a/b'
//    dir_dash:'plugin-a',
//    entry_dash: 'plugin-a-b'
//  }
 

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-key-parse

Weekly Downloads

1

Version

0.0.3

License

none

Unpacked Size

18.2 kB

Total Files

12

Last publish

Collaborators

  • flynnlee123