sedoo-static-upload-plugin
v0.2.3
Published
A dumb plugin used only by SEDOO
Downloads
11
Readme
sedooStaticUploadPlugin
Vite Plugin
Plugin is triggered after build. It takes all file generated by build and send it to a given url by a @POST Axios HTTP Request
Plugin accepts two parameters :
- url (required) : URL of the WS you want to call
- fileName (optional) : Name of the file you want to push. By default, name of the file build
In vite.config.js :
import UploadCDN from "sedoo-static-upload-plugin/vite-plugin-vue-upload-cdn";
export default ({ mode }) => {
let fileName = "name of the file";
const url = "https//my-web-service-url";
const plugins = [
UploadCDN(url, fileName)
];
};
NPM Deployement
CI trigger new tag and send new package to NPMJS. Be careful, it is not possible to send two tag with the same name to NPMJS.
- Update
package.json
with new number version - Push your code
- Create a new tag
git tag :version
- Push your code :
git push --tags