🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

vue-components-autodetect-webpack

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-components-autodetect-webpack - npm Package Compare versions

Comparing version

to
0.1.1

.npmignore

11

package.json
{
"name": "vue-components-autodetect-webpack",
"version": "0.1.0",
"version": "0.1.1",
"description": "Inject Vue components to js file based on folder structure",

@@ -22,3 +22,10 @@ "repository": {

},
"homepage": "https://github.com/tecbeast42/vue-components-autodetect-webpack#readme"
"homepage": "https://github.com/tecbeast42/vue-components-autodetect-webpack#readme",
"peerDependencies": {
"webpack": "^2.0.0 || ^3.0.0",
"vue": "^2.0.0"
},
"dependencies": {
"loader-utils": "^1.0.0"
}
}

29

README.md

@@ -6,5 +6,5 @@ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

# Inject Vue components Webpack plugin
# Vue components Webpack plugin
Inject Vue components to js file based on folder structure.
Inject Vue components into your webpack bundle based on folder structure and filename. So you save a file to edit for every new component.

@@ -18,11 +18,15 @@ ```

## Installation
## Usage
### In your JS file
this comment gets expanded into Vue Component list
```
npm install --save vue-components-autodetect-webpack
yarn add vue-components-autodetect-webpack
// inject-vue-components
```
## Usage
so it will look like this
```
Vue.component('folder-file', require('folder/file.vue'));
```
### Configuration

@@ -57,13 +61,8 @@

### In the JS file
## Installation
In the entry file:
```
// inject-vue-components
npm install --save vue-components-autodetect-webpack
yarn add vue-components-autodetect-webpack
```
gets transformed to
```
Vue.component('folder-file', require('folder/file.vue'));
```