Last active
October 26, 2017 16:36
-
-
Save alersenkevich/52e579c96fe19b9f173d9124d622bdfc to your computer and use it in GitHub Desktop.
webpack config for pixi.js
This file contains 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
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