forked from godaddy-wordpress/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jonathan Bardo <[email protected]>
- Loading branch information
1 parent
751d903
commit fe00e00
Showing
12 changed files
with
2,499 additions
and
6,941 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,12 @@ | ||
/* global module, require */ | ||
|
||
const merge = require( 'webpack-merge' ); | ||
const { merge } = require( 'webpack-merge' ); | ||
const common = require( './webpack.common.js' ); | ||
const TerserPlugin = require( 'terser-webpack-plugin' ); | ||
|
||
module.exports = merge( common, { | ||
mode: 'production', | ||
|
||
optimization: { | ||
minimizer: [ | ||
new TerserPlugin( { | ||
cache: true, | ||
parallel: true, | ||
sourceMap: false, | ||
terserOptions: { | ||
parse: { | ||
// We want terser to parse ecma 8 code. However, we don't want it | ||
// to apply any minfication steps that turns valid ecma 5 code | ||
// into invalid ecma 5 code. This is why the 'compress' and 'output' | ||
// sections only apply transformations that are ecma 5 safe | ||
// https://github.com/facebook/create-react-app/pull/4234 | ||
ecma: 8 | ||
}, | ||
compress: { | ||
ecma: 5, | ||
warnings: false, | ||
// Disabled because of an issue with Uglify breaking seemingly valid code: | ||
// https://github.com/facebook/create-react-app/issues/2376 | ||
// Pending further investigation: | ||
// https://github.com/mishoo/UglifyJS2/issues/2011 | ||
comparisons: false, | ||
// Disabled because of an issue with Terser breaking valid code: | ||
// https://github.com/facebook/create-react-app/issues/5250 | ||
// Pending futher investigation: | ||
// https://github.com/terser-js/terser/issues/120 | ||
inline: 2 | ||
}, | ||
output: { | ||
ecma: 5, | ||
comments: false | ||
}, | ||
ie8: false | ||
} | ||
} ) | ||
], | ||
minimize: true, | ||
}, | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"extends": "@godaddy-wordpress/stylelint-config" | ||
"extends": "@godaddy-wordpress/stylelint-config", | ||
customSyntax: 'postcss-scss' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.