sedoo-static-upload-plugin

0.2.3 • Public • Published

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.jsonwith new number version
  • Push your code
  • Create a new tag git tag :version
  • Push your code : git push --tags

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i sedoo-static-upload-plugin

Weekly Downloads

3

Version

0.2.3

License

MIT

Unpacked Size

6.43 kB

Total Files

5

Last publish

Collaborators

  • francoisandre