Skip to content

Commit

Permalink
disable webpack minification
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Dec 30, 2020
1 parent 32b8989 commit b2cbd4f
Show file tree
Hide file tree
Showing 4 changed files with 243,531 additions and 3 deletions.
108,014 changes: 108,013 additions & 1 deletion packages/next/compiled/webpack/bundle4.js

Large diffs are not rendered by default.

135,516 changes: 135,515 additions & 1 deletion packages/next/compiled/webpack/bundle5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/next/taskfile-ncc.js
Expand Up @@ -12,7 +12,7 @@ module.exports = function (task) {
}
return ncc(join(__dirname, file.dir, file.base), {
filename: file.base,
minify: true,
minify: options.minify === false ? false : true,
...options,
}).then(({ code, assets }) => {
Object.keys(assets).forEach((key) => {
Expand Down
2 changes: 2 additions & 0 deletions packages/next/taskfile.js
Expand Up @@ -529,6 +529,7 @@ export async function ncc_webpack_bundle4(task, opts) {
packageName: 'webpack',
bundleName: 'webpack',
externals: bundleExternals,
minify: false,
})
.target('compiled/webpack')
}
Expand All @@ -544,6 +545,7 @@ export async function ncc_webpack_bundle5(task, opts) {
packageName: 'webpack5',
bundleName: 'webpack',
externals: bundleExternals,
minify: false,
})
.target('compiled/webpack')
}
Expand Down

0 comments on commit b2cbd4f

Please sign in to comment.