@d2-projects/vue-filename-injector
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
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 |