Skip to content

Commit

Permalink
fix: us workaround to allow uglify/minify, see angular/angular#10618
Browse files Browse the repository at this point in the history
closes #157
  • Loading branch information
Shlomi Assaf (shlassaf) committed Aug 21, 2016
1 parent d0e3aed commit bcd4525
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
42 changes: 21 additions & 21 deletions config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,27 +140,27 @@ module.exports = webpackMerge(commonConfig, {
* See: https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
*/
// NOTE: To debug prod builds uncomment //debug lines and comment //prod lines
// new UglifyJsPlugin({
// // beautify: true, //debug
// // mangle: false, //debug
// // dead_code: false, //debug
// // unused: false, //debug
// // deadCode: false, //debug
// // compress: {
// // screw_ie8: true,
// // keep_fnames: true,
// // drop_debugger: false,
// // dead_code: false,
// // unused: false
// // }, // debug
// // comments: true, //debug
//
//
// beautify: false, //prod
// mangle: { screw_ie8 : true }, //prod
// compress: { screw_ie8: true }, //prod
// comments: false //prod
// }),
new UglifyJsPlugin({
// beautify: true, //debug
// mangle: false, //debug
// dead_code: false, //debug
// unused: false, //debug
// deadCode: false, //debug
// compress: {
// screw_ie8: true,
// keep_fnames: true,
// drop_debugger: false,
// dead_code: false,
// unused: false
// }, // debug
// comments: true, //debug


beautify: false, //prod
mangle: { screw_ie8 : true }, //prod
compress: { screw_ie8: true }, //prod
comments: false //prod
}),

/**
* Plugin: NormalModuleReplacementPlugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ function getProviders(): any[] {
@NgModule({
imports: [ CommonModule ],
declarations: [
BSModalBackdrop,
BSModalFooter,
BSMessageModal,
BSModalContainer,
BSModalFooter
BSModalBackdrop,
BSModalContainer
],
providers: getProviders(),
entryComponents: [
Expand Down
8 changes: 4 additions & 4 deletions src/components/angular2-modal/plugins/vex/vex.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ function getProviders(): any[] {
@NgModule({
imports: [ CommonModule ],
declarations: [
VexModalBackdrop,
VexModalContent,
DialogFormModal,
VEXDialogButtons,
FormDropIn,
VEXDialogButtons
DialogFormModal,
VexModalBackdrop,
VexModalContent
],
providers: getProviders(),
entryComponents: [
Expand Down

0 comments on commit bcd4525

Please sign in to comment.