Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const open = require('open');

export type DevServerBuilderOptions = Schema & json.JsonObject;

export const devServerBuildOverriddenKeys: (keyof DevServerBuilderOptions)[] = [
const devServerBuildOverriddenKeys: (keyof DevServerBuilderOptions)[] = [
'watch',
'optimization',
'aot',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
},
"verbose": {
"type": "boolean",
"description": "Adds more details to output logging.",
"default": false
"description": "Adds more details to output logging."
},
"liveReload": {
"type": "boolean",
Expand Down Expand Up @@ -117,7 +116,6 @@
},
"sourceMap": {
"description": "Output sourcemaps.",
"default": true,
"oneOf": [
{
"type": "object",
Expand Down Expand Up @@ -153,8 +151,7 @@
"vendorSourceMap": {
"type": "boolean",
"description": "Resolve vendor packages sourcemaps.",
"x-deprecated": true,
"default": false
"x-deprecated": true
},
"evalSourceMap": {
"type": "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,14 @@ describe('Dev Server Builder', () => {
expect(await response.text()).toContain('<title>HelloWorldApp</title>');
});

it('should not generate sourcemaps when running prod build', async () => {
// Production builds have sourcemaps turned off.
const run = await architect.scheduleTarget({ ...target, configuration: 'production' });
runs.push(run);
const output = await run.result as DevServerBuilderOutput;
expect(output.success).toBe(true);
const hasSourceMaps = output.emittedFiles && output.emittedFiles.some(f => f.extension === '.map');
expect(hasSourceMaps).toBe(false, `Expected emitted files not to contain '.map' files.`);
});

});