Jump to content

8mb phaser import


SoPhased
 Share

Recommended Posts

Not entirely sure what you've managed to do in your config, but the full version of Phaser, with all extensions included, all jsdocs kept and unminified and not gzipped, is only 3.1MB. So where you've got all that extra from I've no idea!

Link to comment
Share on other sites

I followed the Phaser instructions for a webpack build.

Quote

 

var path = require('path');
var webpack = require('webpack');
 
var phaserModule = path.join(__dirname, '/node_modules/phaser/');
var phaser = path.join(phaserModule, 'build/custom/phaser-split.js'),
  pixi = path.join(phaserModule, 'build/custom/pixi.js'),
  p2 = path.join(phaserModule, 'build/custom/p2.js');
 
module.exports = {
    ...
    module: {
        loaders: [
            { test: /pixi.js/, loader: "script" },
        ]
    },
    resolve: {
        alias: {
            'phaser': phaser,
            'pixi.js': pixi,
            'p2': p2,
        }
    }
    ...
}

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...