0.0.1 • Published 6 years ago
vue-async-loader v0.0.1
vue-async-loader
Install
$ yarn add vue-async-loader --dev
Usage
// webpack.config.js
const path = require('path')
module.exports = {
input: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
modules: {
rules: [
{
test: /\.js|vue$/,
exclude: /node_modules/,
enforce: 'pre',
use: {
loader: 'vue-async-loader',
options: {
dirs: [path.resolve(__dirname, 'src/index.js')]
}
}
}
]
}
}
API
vue-async-loader
options
dirs
Type: string
|array
|RegExp
Default: *
use to choose which dir is be translate sync to async component
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
vue-async-loader © zhoupengcheng, Released under the MIT License. Authored and maintained by zhoupengcheng with help from contributors (list).
pocho1995.me · GitHub @Pochodaydayup
0.0.1
6 years ago