Skip to content

Commit

Permalink
fix: v2 build added to public dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishBarvaliya committed Apr 1, 2024
1 parent 79ec0e5 commit 261155f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules/
bundles/
PIG/bundles/
Parse-Dashboard/public/bundles/
Parse-Dashboard/public/v2/
Parse-Dashboard/v2/
Parse-Dashboard/parse-dashboard-config.json
npm-debug.log
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ COPY --from=build /src/package*.json /src/

# Copy compiled src dirs
COPY --from=build /src/Parse-Dashboard/ /src/Parse-Dashboard/
COPY --from=v2-build /Parse-Dashboard/v2 /src/Parse-Dashboard/v2
COPY --from=v2-build /Parse-Dashboard/public/v2 /src/Parse-Dashboard/public/v2

USER node

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"dev": "node ./Parse-Dashboard/index.js --dev & webpack --config webpack/build.config.js --devtool eval-source-map --progress --watch",
"dashboard": "node ./Parse-Dashboard/index.js & webpack --config webpack/build.config.js --progress --watch",
"pig": "http-server ./PIG -p 4041 -s & webpack --config webpack/PIG.config.js --progress --watch",
"build": "webpack --node-env=production --config webpack/production.config.js && webpack --config webpack/PIG.config.js",
"build": "webpack --node-env=production --config webpack/production.config.js && webpack --config webpack/PIG.config.js && npm run build --workspace=v2",
"test": "jest",
"lint": "eslint --ignore-path .gitignore --cache ./",
"lint:fix": "DEBUG=eslint:cli-engine eslint --ignore-path .gitignore --fix --cache ./",
Expand Down
2 changes: 1 addition & 1 deletion v2/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import react from '@vitejs/plugin-react-swc';
export default defineConfig({
plugins: [react()],
build: {
outDir: '../Parse-Dashboard/v2',
outDir: '../Parse-Dashboard/public/v2',
emptyOutDir: true,
rollupOptions: {
output: {
Expand Down

0 comments on commit 261155f

Please sign in to comment.