Cadrick Loh
Cadrick Loh

Reputation: 721

Pixi.js vs Pixi.min.js differences?

I'm new to web development and currently learning Pixi.js and I noticed there are few versions:

Pixi.js
Pixi.js.map
Pixi.min.js
Pixi.min.js.map

May I know is there any differences between these in terms of features?

Upvotes: 0

Views: 727

Answers (2)

Technikhighknee
Technikhighknee

Reputation: 68

To answer your question: No they are exactly the same, when it comes to features.

A *.min.js file is just the original.js file but "minified".

That means names were shortened (e.g function getName changed to n).

It's size (bytes) is also reduced.

Upvotes: 0

netalex
netalex

Reputation: 457

they're not at all different version, it's just a common convention in javascript programming: "min.js" files are the "minified" lib source, that's mean the same ".js" file where spaces, end of line and other unnecessary (for the browser) characters are cut off, and also variables names were changed with shorter ones, to obtain a lighter source file, less heavy to download and easier to execute for the browser. This file is obviously automatically generated from tools like gulp and grunt and is the source file you have to upload to the server and finally serve to the user. ".map" files instead are, whell, maps who link minified files to their full size counterpart, whit just min and map files, chrome debugger can reconstruct the original source and show it to you in the inspector.

Upvotes: 2

Related Questions