Skip to content

Instantly share code, notes, and snippets.

@oal
Last active October 26, 2017 09:49
Show Gist options
  • Save oal/898df82fa64e54dd16d0 to your computer and use it in GitHub Desktop.
Save oal/898df82fa64e54dd16d0 to your computer and use it in GitHub Desktop.
Webpack config for Pixi.js using Babel.
'use strict';
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: './src/game.js',
output: {
filename: 'build/game.js'
},
node: {
fs: 'empty'
},
module: {
loaders: [
{
test: /\.json$/,
include: path.join(__dirname, 'node_modules', 'pixi.js'),
loader: 'json',
},
{
test: /\.js$/,
exclude: path.join(__dirname, 'node_modules'),
loader: 'babel'
}
]
}
};
@davydka
Copy link

davydka commented Jan 7, 2016

This is the most direct and simple example of configuring webpack with PIXI that I found.

https://gist.github.com/mjackson/ecd3914ebee934f4daf4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment