mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 20:02:22 -06:00
Fixes #7068: Disable sourcemaps on CSS files, use external sourcemaps
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user