Files
artcraft/frontend/webpack.config.js
T
Brandon Thomas d9c315fc28 animation, part 2
- minify flag for webpack
- add second animation
- fix existing animation (transition between stop and idle)
- abstraction of animation code into new class
2016-11-04 02:41:04 -04:00

37 lines
725 B
JavaScript

var webpack = require('webpack');
var plugins = [];
var minify = JSON.parse(process.env.MINIFY || '0');
if (minify) {
plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false }
}));
}
module.exports = {
entry: {
// Frontend code
main: './main.ts',
// Old code
waveform_component: './waveform_component.ts',
//testing_app: './old_test_page/testing_app.ts', // TODO: Rename broke this
},
resolve: {
extensions: ['', '.webpack.js', '.web.js', '.ts', '.js']
},
output: {
path: '../web/output',
filename: '[name].built.js'
},
module: {
loaders: [
{
loader: 'ts-loader',
test: /\.ts$/
}
]
},
plugins: plugins,
}