Fixes #7068: Disable sourcemaps on CSS files, use external sourcemaps

This commit is contained in:
thatmattlove 2021-08-30 10:56:02 -07:00
parent deda1691e9
commit ed0f792f04
27 changed files with 4 additions and 50 deletions

View File

@ -6,7 +6,8 @@ const options = {
outdir: './dist',
bundle: true,
minify: true,
sourcemap: true,
sourcemap: 'external',
sourcesContent: false,
logLevel: 'error',
};
@ -91,6 +92,8 @@ async function bundleStyles() {
}
let result = await esbuild.build({
...options,
// Disable sourcemaps for CSS/SCSS files, see #7068
sourcemap: false,
entryPoints,
plugins: [sassPlugin(pluginOptions)],
loader: {

Binary file not shown.

View File

@ -1,7 +0,0 @@
{
"version": 3,
"sources": ["sass:/Users/ml/dev/netbox/netbox/project-static/styles/_cable_trace.scss"],
"sourcesContent": [":root{--nbx-trace-color: #000;--nbx-trace-node-bg: #e9ecef;--nbx-trace-termination-bg: #f8f9fa;--nbx-trace-cable-shadow: #343a40;--nbx-trace-attachment: #ced4da}:root[data-netbox-color-mode=dark]{--nbx-trace-color: #fff;--nbx-trace-node-bg: #212529;--nbx-trace-termination-bg: #343a40;--nbx-trace-cable-shadow: #e9ecef;--nbx-trace-attachment: #6c757d}*{font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",\"Liberation Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";font-size:.875rem}text{text-anchor:middle;dominant-baseline:middle}text:not([fill]){fill:var(--nbx-trace-color)}text.bold{font-weight:700}svg rect{fill:var(--nbx-trace-node-bg);stroke:#606060;stroke-width:1}svg rect .termination{fill:var(--nbx-trace-termination-bg)}svg .connector text{text-anchor:start}svg line{stroke-width:5px}svg line.cable-shadow{stroke:var(--nbx-trace-cable-shadow);stroke-width:7px}svg line.attachment{stroke:var(--nbx-trace-attachment);stroke-dasharray:5px,5px}"],
"mappings": "AAAA,MAAM,wBAAwB,6BAA6B,oCAAoC,kCAAkC,gCAAgC,mCAAmC,wBAAwB,6BAA6B,oCAAoC,kCAAkC,gCAAgC,EAAE,gMAAgM,kBAAkB,KAAK,mBAAmB,yBAAyB,iBAAiB,4BAA4B,UAAU,gBAAgB,SAAS,8BAA8B,eAAe,eAAe,sBAAsB,qCAAqC,oBAAoB,kBAAkB,SAAS,iBAAiB,sBAAsB,qCAAqC,iBAAiB,oBAAoB,mCAAmC",
"names": []
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +0,0 @@
{
"version": 3,
"sources": ["sass:/Users/ml/dev/netbox/netbox/project-static/styles/_rack_elevation.scss"],
"sourcesContent": ["svg{--nbx-rack-bg: #e9ecef;--nbx-rack-border: #000;--nbx-rack-slot-bg: #e9ecef;--nbx-rack-slot-border: #adb5bd;--nbx-rack-slot-hover-bg: #ced4da;--nbx-rack-link-color: #0d6efd;--nbx-rack-unit-color: #6c757d}svg[data-netbox-color-mode=dark]{--nbx-rack-bg: #343a40;--nbx-rack-border: #6c757d;--nbx-rack-slot-bg: #343a40;--nbx-rack-slot-border: #495057;--nbx-rack-slot-hover-bg: #212529;--nbx-rack-link-color: #9ec5fe;--nbx-rack-unit-color: #6c757d}*{font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",\"Liberation Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";font-size:.875rem}rect{box-sizing:border-box}text{text-anchor:middle;dominant-baseline:middle}svg .unit{margin:0;padding:5px 0px;fill:var(--nbx-rack-unit-color)}svg .hidden{visibility:hidden}svg .rack{fill:none;stroke-width:2px;stroke:var(--nbx-rack-border);background-color:var(--nbx-rack-bg)}svg .slot{fill:var(--nbx-rack-slot-bg);stroke:var(--nbx-rack-slot-border)}svg .slot:hover{fill:var(--nbx-rack-slot-hover-bg)}svg .slot+.add-device{fill:var(--nbx-rack-link-color);opacity:0;pointer-events:none}svg .slot:hover+.add-device{opacity:1}svg .slot.reserved:hover[class]+.add-device{fill:#000}svg .slot.reserved[class],svg .slot.reserved:hover[class]{fill:url(#reserved)}svg .slot.occupied[class],svg .slot.occupied:hover[class]{fill:url(#occupied)}svg .slot.blocked[class],svg .slot.blocked:hover[class]{fill:url(#blocked)}svg .slot.blocked:hover+.add-device{opacity:0}"],
"mappings": "AAAA,IAAI,uBAAuB,wBAAwB,4BAA4B,gCAAgC,kCAAkC,+BAA+B,+BAA+B,iCAAiC,uBAAuB,2BAA2B,4BAA4B,gCAAgC,kCAAkC,+BAA+B,+BAA+B,EAAE,gMAAgM,kBAAkB,KAAK,sBAAsB,KAAK,mBAAmB,yBAAyB,UAA9tB,uBAAiwB,gCAAgC,YAAY,kBAAkB,UAAU,UAAU,iBAAiB,8BAA8B,oCAAoC,UAAU,6BAA6B,mCAAmC,gBAAgB,mCAAmC,sBAAsB,gCAAgC,UAAU,oBAAoB,4BAA4B,UAAU,4CAA4C,UAAU,0DAA0D,oBAAoB,0DAA0D,oBAAoB,wDAAwD,mBAAmB,oCAAoC",
"names": []
}

Binary file not shown.

Binary file not shown.