Skip to content

Build your personal knowledge base with Trilium Notes

webpack: add bootstrap webpack config

Panagiotis Papadopoulosfc6b9e00bcbb
diff --git a/webpack.config.ts b/webpack.config.ts
index f867f1e5b1..0c68b057fc 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -1,5 +1,6 @@
import { fileURLToPath } from "url";
import path from "path";
+import autoprefixer from "autoprefixer";
import assetPath from "./src/services/asset_path.js";
import type { Configuration } from "webpack";
@@ -30,6 +31,29 @@ const config: Configuration = {
}
],
exclude: /node_modules/
+ },
+ {
+ // bootstrap CSS related configuration
+ test: /\.(scss)$/,
+ use: [
+ {
+ loader: "style-loader"
+ },
+ {
+ loader: "css-loader"
+ },
+ {
+ loader: "postcss-loader",
+ options: {
+ postcssOptions: {
+ plugins: [autoprefixer]
+ }
+ }
+ },
+ {
+ loader: "sass-loader"
+ }
+ ]
}
]
},
@@ -41,8 +65,8 @@ const config: Configuration = {
".mjs": [".mjs", ".mts"]
}
},
- devtool: "source-map",
+ //devtool: "none",
target: "electron-renderer"
};
-export default config;
\ No newline at end of file
+export default config;