Skip to content

Commit 1c07193

Browse files
committed
fix formatting
1 parent c5b9e7c commit 1c07193

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

packages/gatsby-cli/src/create-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function buildLocalCommands(cli, isLocalSite) {
127127
}).option(`no-uglify`, {
128128
type: `boolean`,
129129
default: false,
130-
describe: `Build site without uglifying JS bundles (for debugging).`
130+
describe: `Build site without uglifying JS bundles (for debugging).`,
131131
}),
132132
handler: handlerP(
133133
getCommandHandler(`build`, (args, cmd) => {

packages/gatsby/src/commands/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type BuildArgs = {
1818
sitePackageJson: object,
1919
browserslist: string[],
2020
prefixPaths: boolean,
21-
noUglify: boolean
21+
noUglify: boolean,
2222
}
2323

2424
module.exports = async function build(program: BuildArgs) {

packages/gatsby/src/utils/webpack.config.js

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -321,22 +321,24 @@ module.exports = async (
321321
new GatsbyModulePlugin(),
322322
// new WebpackStableModuleIdAndHash({ seed: 9, hashSize: 47 }),
323323
new HashedChunkIdsPlugin(),
324-
];
325-
if(!noUglify) {
324+
]
325+
if (!noUglify) {
326326
// Minify JavaScript.
327-
plugins.push(new webpack.optimize.UglifyJsPlugin({
328-
compress: {
329-
screw_ie8: true, // React doesn't support IE8
330-
warnings: false,
331-
},
332-
mangle: {
333-
screw_ie8: true,
334-
},
335-
output: {
336-
comments: false,
337-
screw_ie8: true,
338-
},
339-
}))
327+
plugins.push(
328+
new webpack.optimize.UglifyJsPlugin({
329+
compress: {
330+
screw_ie8: true, // React doesn't support IE8
331+
warnings: false,
332+
},
333+
mangle: {
334+
screw_ie8: true,
335+
},
336+
output: {
337+
comments: false,
338+
screw_ie8: true,
339+
},
340+
})
341+
)
340342
}
341343
return plugins
342344
}

0 commit comments

Comments
 (0)