Skip to content

Commit

Permalink
[INTERNAL] minify: Omit .js.map from build results
Browse files Browse the repository at this point in the history
Source maps are currently only required during the build process
(e.g. for creating source maps of bundles) but not as build output.
Therefore they will be omitted from the build result.
  • Loading branch information
matz3 committed Jan 21, 2022
1 parent f84bcf2 commit 1689f13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = async function({workspace, taskUtil, options: {pattern}}) {
if (taskUtil) {
taskUtil.setTag(resource, taskUtil.STANDARD_TAGS.HasDebugVariant);
taskUtil.setTag(dbgResource, taskUtil.STANDARD_TAGS.IsDebugVariant);
taskUtil.setTag(sourceMapResource, taskUtil.STANDARD_TAGS.OmitFromBuildResult);
}
return Promise.all([
workspace.write(resource),
Expand Down

0 comments on commit 1689f13

Please sign in to comment.