zip-quasar-build
v1.1.3
Published
Zip the quasar build folder
Readme
Zip Quasar Build
Zip the quasar build folder
Installation
With NPM
npm install --save-dev zip-quasar-buildWith Yarn
yarn add -D zip-quasar-buildUsage
At the beginning of the quasar.conf file import the library
const { zipQuasarBuild } = require("zip-quasar-build");or in module type
import { zipQuasarBuild } from "zip-quasar-build";The zipQuasarBuild function accepts an object with 4 parameters; path of the folder to compress, zip name, quasar mode and open file explorer.
The zipQuasarBuild function must be added inside the afterBuild parameter found inside build in the quasar.conf configuration object.
Example:
afterBuild({ quasarConf }) {
zipQuasarBuild({
input: quasarConf.build.distDir,
fileName: 'zip-name',
quasarMode: quasarConf.ctx.modeName,
openFE: true
})
}After performing a build the zipQuasarBuild function will compress the folder and open a window where the folder was compressed.
