-
Notifications
You must be signed in to change notification settings - Fork 0
/
assetpack.js
28 lines (26 loc) · 857 Bytes
/
assetpack.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { compressJpg, compressPng } from '@assetpack/plugin-compress';
import { audio } from '@assetpack/plugin-ffmpeg';
import { json } from '@assetpack/plugin-json';
import { pixiManifest } from '@assetpack/plugin-manifest';
import { pixiTexturePacker } from '@assetpack/plugin-texture-packer';
import { webfont } from '@assetpack/plugin-webfont';
export default {
entry: './raw-assets',
output: './public/assets/',
cache: false,
plugins: {
webfont: webfont(),
compressJpg: compressJpg(),
compressPng: compressPng(),
audio: audio(),
json: json(),
texture: pixiTexturePacker({
texturePacker: {
removeFileExtension: true,
},
}),
manifest: pixiManifest({
output: './public/assets/assets-manifest.json'
}),
},
};