Skip to content

Commit

Permalink
add static asset build
Browse files Browse the repository at this point in the history
  • Loading branch information
addis-samtek committed Jan 22, 2025
1 parent fd4ea02 commit 1d51c34
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/deploy-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,21 @@ jobs:
env:
VITE_ENV: dev${{ steps.findPr.outputs.pr }}
run: |
cd solution/ui/regulations/eregs-vite
npm install
cd solution/ui/regulations
npm install isomorphic-dompurify
# Update the import in sanitizeHtml.js
if [ -f ../directives/sanitizeHtml.js ]; then
sed -i 's/import DOMPurify from "dompurify"/import DOMPurify from "isomorphic-dompurify"/' ../directives/sanitizeHtml.js
fi
cd eregs-vite
npm install
# Create vite.config.js with proper resolve configuration
echo 'import { defineConfig } from "vite";
export default defineConfig({
resolve: {
alias: {
"isomorphic-dompurify": "../node_modules/isomorphic-dompurify"
}
}
});' > vite.config.js
npm run build
- name: Run make regulations
if: success() && steps.findPr.outputs.number
env:
Expand Down

0 comments on commit 1d51c34

Please sign in to comment.