Minification fix #1693 (#1782)

This commit is contained in:
Eugenio Romano 2017-03-28 20:47:57 +01:00 committed by Denys Vuika
parent 4c62409e8c
commit 3a300c20d4
2 changed files with 12 additions and 10 deletions

View File

@ -120,7 +120,6 @@ export class ActivitiDemoComponent implements AfterViewInit {
);
this.dataProcesses.setSorting(new DataSorting('started', 'desc'));
// Uncomment this line to replace all 'text' field editors with custom component
// formRenderingService.setComponentTypeResolver('text', () => CustomEditorComponent, true);

View File

@ -40,15 +40,18 @@ module.exports = webpackMerge(commonConfig, {
// Reference: http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
// Minify all javascript, switch loaders to minimizing mode
// new webpack.optimize.UglifyJsPlugin({
// mangle: {
// keep_fnames: true
// },
// compressor: {
// screw_ie8: true,
// warnings: false
// }
// }),
new webpack.optimize.UglifyJsPlugin({
output:{
comments: false
},
mangle: {
keep_fnames: true
},
compressor: {
screw_ie8: true,
warnings: false
}
}),
// Extract css files
// Reference: https://github.com/webpack/extract-text-webpack-plugin