0.0.3 • Published 4 years ago

webpack-key-parse v0.0.3

Weekly downloads
13
License
-
Repository
github
Last release
4 years ago

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'
//  }