mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 05:53:43 -05:00
dc469d4a8e
Add `.gitattributes` for consistent line endings across platforms. Use `node` instead of deprecated `stable` version specifier for Travis. Set dev tool to `cheap-module-source-map`.
24 lines
526 B
JavaScript
24 lines
526 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']
|
|
}
|
|
}]
|
|
}
|
|
};
|