vue-loader-subcomponent
Basic Usage
A subcomponent loader for vue-loader that allows the following extension:
<!-- <list-title> subcomponent --> List Title <!-- <list-item> subcomponent --> {{item.text}} <!-- Main component as usual --> My fancy list:
Configuration
You have to edit your webpack.config.js
to:
// ...module: rules: // ..., test: /\.vue$/ use: 'vue-loader-subcomponent' loader: 'vue-loader' options: loaders: subcomponent: 'vue-loader-subcomponent/subcomponent'
So the vue-loader can recognize the subcomponent extension