1.0.0 • Published 9 years ago
weex-vuex-loader v1.0.0
Useage
npm install --save weex-vuex-loaderthen install vuex-weex.
then open webpack.config.js,add 'weex-vuex-loader' after 'weex-loader':
// ...
module: {
loaders: [
{
test: /\.we(\?[^?]+)?$/,
loaders: ['weex-loader', 'weex-vuex-loader?store']
}
]
}
// ...query 'store' after ? means you can access your Vuex store inside weex component like this.store. If you don't specify the query, the default will be this._store.
1.0.0
9 years ago