@d2-projects/vue-filename-injector

Inject the file path of .vue
7,812 7
Install
npm install @d2-projects/vue-filename-injector
Latest Version:1.1.1
License:MIT
Last Updated:Jan 7, 2023
Links: GitHub  ·  npm
Maintainer: cnine

Vue Filename Injector

Inject the file path of the .vue on this.$options.__source.

Install

yarn add @d2-projects/vue-filename-injector -D

or

npm install @d2-projects/vue-filename-injector -D

Usage

Only used for vue-cli3, vue.config.js:

const VueFilenameInjector = require('@d2-projects/vue-filename-injector')

module.exports = {

  chainWebpack: config => {
    // ...

    // in here, only with chainWebpack
    VueFilenameInjector(config, {
      propName: '__source' // default
    })

  }
}

Relevant

https://github.com/neutrinojs/webpack-chain https://vue-loader.vuejs.org/guide/custom-blocks.html

Related Packages

vue-inheritance-loader

Loader to provide template inheritance in Vue's Single File Components

1,154 37
node-esm-loader

A webpack-like loader for Node

48,094 8
vue-button-spinner

A simple button spinner.

16,948 35
file-uploader-vue-component

A vuejs component of file uploader.

3,739 12
http-vue-loader

Load .vue files directly from your html/js. No node.js environment, no build ste...

52,627 1,477

Version History

Version Released License
1.1.1 MIT
1.1.0 MIT
1.0.0 MIT