Phyks (Lucas Verney)
fffe9c4cd3
Major code review, cleaning the code and adding a lot of comments. Also implements a separate store to keep entities with a reference count and garbage collection. This closes #15. Known issues at the moment are: * Webplayer is no longer working, it has to be refactored. * AlbumPage is to be implemented.
35 lines
931 B
JavaScript
35 lines
931 B
JavaScript
var webpack = require("webpack");
|
|
var config = require("./webpack.config.base.js");
|
|
|
|
// Report first error as hard error
|
|
config.bail = true;
|
|
config.debug = false;
|
|
// Do not capture timing information for each module
|
|
config.profile = false;
|
|
// Emit source map
|
|
config.devtool = "#source-map";
|
|
|
|
config.plugins = config.plugins.concat([
|
|
new webpack.NoErrorsPlugin(), // Any error is considered a failure
|
|
new webpack.DefinePlugin({ // Set production environment variable
|
|
'process.env': {
|
|
'NODE_ENV': JSON.stringify('production')
|
|
}
|
|
}),
|
|
// Optimizations
|
|
new webpack.optimize.OccurenceOrderPlugin(true),
|
|
new webpack.optimize.DedupePlugin(),
|
|
// Minifications
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
output: {
|
|
comments: false
|
|
},
|
|
compress: {
|
|
warnings: false,
|
|
screw_ie8: true
|
|
}
|
|
})
|
|
]);
|
|
|
|
module.exports = config;
|