Skip to content

Instantly share code, notes, and snippets.

@alersenkevich
Last active October 26, 2017 16:36
Show Gist options
  • Save alersenkevich/52e579c96fe19b9f173d9124d622bdfc to your computer and use it in GitHub Desktop.
Save alersenkevich/52e579c96fe19b9f173d9124d622bdfc to your computer and use it in GitHub Desktop.
webpack config for pixi.js
const path = require('path')
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'public'),
filename: 'bundle.js',
},
module: {
rules: [
{
loader: 'babel-loader',
options: {
presets: ['es2015']
}
}
]
},
devServer: {
contentBase: path.join(__dirname, 'public'),
compress: true,
port: 9000,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment