-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
When bundle my app with gulp-zip, fonts getting corrupted. I am fixing this by uploading fonts as manually.
Here is my gulpfile.mjs
import rename from 'gulp-rename'
import gulp from 'gulp'
import gulpZip from 'gulp-zip'
import { homedir } from 'os'
const userHomeDirectory = homedir()
const desktopDir = `${userHomeDirectory}/Desktop`
const pluginFolder = 'production'
export const zip = () => {
return gulp
.src(
[
'**/*',
'!node_modules/**',
'!src/**',
'!.browserslistrc',
'!.eslintrc',
'!eslint.config.mjs',
'!.prettierrc',
'!.stylelintrc.json',
'!gulpfile.js',
'!gulpfile.mjs',
'!postcss.config.js',
'!phpcs.xml.dist',
'!package.json',
'!composer.json',
'!composer.lock',
'!package-lock.json',
'!webpack.config.js',
'!.DS_Store',
'!README.md',
'!.idea/**',
'!.github/**',
'!.git/**',
'!**/*.css.map',
'!**/*.js.map',
],
)
.pipe(
rename(function (path) {
path.dirname = `${pluginFolder}/${path.dirname}`
})
)
.pipe(gulpZip(`${pluginFolder}.zip`, { compress: true }))
.pipe(gulp.dest(desktopDir))
}
Also tried compress: false
. Still same problem.
brokeboiflex, j-oliveras and cmoniz-ocean
Metadata
Metadata
Assignees
Labels
No labels