Last active
October 26, 2017 09:49
-
-
Save oal/898df82fa64e54dd16d0 to your computer and use it in GitHub Desktop.
Webpack config for Pixi.js using Babel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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' | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the most direct and simple example of configuring webpack with PIXI that I found.
https://gist.github.com/mjackson/ecd3914ebee934f4daf4