scratch-audio/webpack.config.js
Michael "Z" Goddard df13e181eb
Update to webpack 4
2018-05-07 12:41:19 -04:00

25 lines
604 B
JavaScript

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