diff --git a/README.md b/README.md index 4b47837..f66551a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Install ``` bash - npm install vue-upload-component@next --save + npm install vue-upload-component --save ``` ### CommonJS @@ -37,6 +37,24 @@ ``` +### SSR (Server) +```js +import FileUpload from 'vue-upload-component/src' +``` + +#### webpack.config.js +```js +var nodeExternals = require('webpack-node-externals'); +{ + //..... + externals: [ + nodeExternals({whitelist:[/^vue-upload-component/]}) + ] + //..... +} + +``` + ## Examples https://lian-yue.github.io/vue-upload-component/