Add support for injecting custom code-snippets in webapps

This commit is contained in:
Mumbi Francis
2024-08-23 17:55:09 +03:00
committed by Mumbi Francis
parent f5e6c45d07
commit 2e8b0e96a3
25 changed files with 489 additions and 3 deletions
+3
View File
@@ -28,5 +28,8 @@
<div id="app"></div>
<!-- built files will be auto injected -->
<script src="<%= BASE_URL %>config.js" type="text/javascript"></script>
<!-- contains cdns that will be injected at the head of the page -->
<script src="<%= BASE_URL %>code-snippets.js" type="text/javascript"></script>
</body>
</html>
+4
View File
@@ -124,6 +124,10 @@ module.exports = ({ appFlavour, appLabel, version = process.env.BUILD_VERSION, t
'^/custom.css': {
target: fetchBaseUrl(),
},
'^/code-snippets.js': {
target: fetchBaseUrl(),
},
},
watchOptions: {