Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace UglifyJS with babel-minify #1733

Closed
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7def915
SWITCH UglifyJS for Babel-Minify
ndelangen Aug 24, 2017
100f8f7
Merge branch 'master' into ndelangen/replace-uglify-with-babel-minify
ndelangen Aug 24, 2017
6fcf9d3
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Aug 25, 2017
c25d3d3
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Aug 26, 2017
ce700b4
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Aug 27, 2017
93cff8b
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Aug 29, 2017
da5dd93
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Sep 4, 2017
2f08170
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Sep 6, 2017
e20bce2
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Sep 6, 2017
c5fe21c
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Sep 11, 2017
65dc8a8
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Sep 18, 2017
89ce485
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Sep 24, 2017
44e47ca
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Sep 25, 2017
fa30be9
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Sep 27, 2017
62eaac6
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Sep 27, 2017
b8a1064
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Sep 28, 2017
52e6d52
Don't minify built-ins, so that they can be shimmed properly
Hypnosphi Sep 29, 2017
d3c1f0e
Disable `evaluate` and `propertyLiterals` transforms, as they break `…
Hypnosphi Sep 29, 2017
0db6315
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Sep 29, 2017
51ba3c6
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Sep 30, 2017
a1b76ae
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Sep 30, 2017
4efc197
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Oct 1, 2017
231f0f2
Disable name mangling as it breaks addon-actions
Hypnosphi Oct 1, 2017
c3ec7e2
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Oct 1, 2017
2b7810d
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Oct 5, 2017
5046cd2
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
danielduan Oct 31, 2017
fa59a3b
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
ndelangen Nov 16, 2017
8ba124d
Merge branch 'release/3.3' into ndelangen/replace-uglify-with-babel-m…
Hypnosphi Nov 17, 2017
4280d32
Update lockfile
Hypnosphi Nov 17, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"autoprefixer": "^7.1.1",
"babel-core": "^6.25.0",
"babel-loader": "^7.0.0",
"babel-minify-webpack-plugin": "^0.2.0",
"babel-plugin-syntax-async-functions": "^6.13.0",
"babel-plugin-syntax-trailing-function-commas": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.24.1",
Expand Down
18 changes: 6 additions & 12 deletions app/react-native/src/server/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path';
import webpack from 'webpack';
import MinifyPlugin from 'babel-minify-webpack-plugin';
import { OccurenceOrderPlugin, includePaths, excludePaths } from './utils';

const config = {
Expand All @@ -21,19 +22,12 @@ const config = {
plugins: [
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"production"' }),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({
compress: {
screw_ie8: true,
warnings: false,
},
mangle: {
screw_ie8: true,
},
output: {
new MinifyPlugin(
{},
{
comments: false,
screw_ie8: true,
},
}),
}
),
],
module: {
loaders: [
Expand Down
1 change: 1 addition & 0 deletions app/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"autoprefixer": "^7.1.1",
"babel-core": "^6.25.0",
"babel-loader": "^7.0.0",
"babel-minify-webpack-plugin": "^0.2.0",
"babel-plugin-react-docgen": "^1.6.0",
"babel-preset-env": "^1.6.0",
"babel-preset-minify": "^0.2.0",
Expand Down
16 changes: 6 additions & 10 deletions app/react/src/server/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path';
import webpack from 'webpack';
import MinifyPlugin from 'babel-minify-webpack-plugin';
import babelLoaderConfig from './babel.prod';
import { includePaths, excludePaths, loadEnv, nodePaths } from './utils';

Expand All @@ -24,17 +25,12 @@ export default function() {
},
plugins: [
new webpack.DefinePlugin(loadEnv({ production: true })),
new webpack.optimize.UglifyJsPlugin({
compress: {
screw_ie8: true,
warnings: false,
},
mangle: false,
output: {
new MinifyPlugin(
{},
{
comments: false,
screw_ie8: true,
},
}),
}
),
],
module: {
rules: [
Expand Down
1 change: 1 addition & 0 deletions app/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"autoprefixer": "^7.1.1",
"babel-core": "^6.25.0",
"babel-loader": "^7.0.0",
"babel-minify-webpack-plugin": "^0.2.0",
"babel-plugin-react-docgen": "^1.6.0",
"babel-preset-env": "^1.6.0",
"babel-preset-minify": "^0.2.0",
Expand Down
16 changes: 6 additions & 10 deletions app/vue/src/server/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path';
import webpack from 'webpack';
import MinifyPlugin from 'babel-minify-webpack-plugin';
import babelLoaderConfig from './babel.prod';
import { includePaths, excludePaths, loadEnv, nodePaths } from './utils';

Expand All @@ -24,17 +25,12 @@ export default function() {
},
plugins: [
new webpack.DefinePlugin(loadEnv({ production: true })),
new webpack.optimize.UglifyJsPlugin({
compress: {
screw_ie8: true,
warnings: false,
},
mangle: false,
output: {
new MinifyPlugin(
{},
{
comments: false,
screw_ie8: true,
},
}),
}
),
],
module: {
rules: [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"husky": "^0.14.3",
"jest": "^20.0.4",
"jest-enzyme": "^3.6.1",
"lerna": "2.0.0",
"lerna": "2.1.0",
"lint-staged": "^4.0.2",
"lodash": "^4.17.4",
"nodemon": "^1.11.0",
Expand Down