scratch-audio/webpack.config.js
2017-04-19 09:48:32 -07:00

24 lines
524 B
JavaScript

var path = require('path');
module.exports = {
devtool: 'cheap-module-source-map',
entry: {
dist: './src/index.js'
},
output: {
path: __dirname,
library: 'AudioEngine',
libraryTarget: 'commonjs2',
filename: '[name].js'
},
module: {
loaders: [{
test: /\.js$/,
loader: 'babel-loader',
include: path.resolve(__dirname, 'src'),
query: {
presets: ['es2015']
}
}]
}
};