mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 15:02:21 +03:00
Enhance layout handling and debugging in WebSocketManager; update mock_backend and App.svelte for improved widget integration and console logging.
This commit is contained in:
@@ -42,18 +42,20 @@ export default {
|
||||
file: "public/build/bundle.js",
|
||||
},
|
||||
plugins: [
|
||||
terser({
|
||||
ecma: 2020,
|
||||
mangle: { toplevel: true },
|
||||
compress: {
|
||||
module: true,
|
||||
toplevel: true,
|
||||
unsafe_arrows: true,
|
||||
drop_console: true,
|
||||
drop_debugger: true,
|
||||
},
|
||||
output: { quote_style: 1 },
|
||||
}),
|
||||
// Minify and drop console only in production (npm run build); in dev (npm run dev) keep console
|
||||
production &&
|
||||
terser({
|
||||
ecma: 2020,
|
||||
mangle: { toplevel: true },
|
||||
compress: {
|
||||
module: true,
|
||||
toplevel: true,
|
||||
unsafe_arrows: true,
|
||||
drop_console: true,
|
||||
drop_debugger: true,
|
||||
},
|
||||
output: { quote_style: 1 },
|
||||
}),
|
||||
svelte({
|
||||
compilerOptions: {
|
||||
// enable run-time checks when not in production
|
||||
@@ -87,9 +89,6 @@ export default {
|
||||
// browser on changes when not in production
|
||||
!production && livereload("public"),
|
||||
|
||||
// If we're building for production (npm run build
|
||||
// instead of npm run dev), minify
|
||||
production && terser(),
|
||||
],
|
||||
watch: {
|
||||
clearScreen: false,
|
||||
|
||||
Reference in New Issue
Block a user