vue-auto-import-loader
v1.0.0
Published
Auto import template / style / script for *.vue file.
Downloads
8
Readme
vue-auto-import-loader
Auto import template / style / script for *.vue file.
Install
npm i -D vue-auto-import-loader
webpack config
{
module: {
loaders: [
{
test: /\.vue$/,
loader: 'vue!vue-auto-import'
}
]
},
vueAutoImport: {
scoped: false,
files: { // relative to *.vue file path
template: '[name].html',
style: '[name].css',
script: '[name].js'
},
langs: {
template: 'html',
style: 'css',
script: 'js'
}
}
}