Skip to content

Commit 261155f

Browse files
fix: v2 build added to public dir
1 parent 79ec0e5 commit 261155f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules/
33
bundles/
44
PIG/bundles/
55
Parse-Dashboard/public/bundles/
6+
Parse-Dashboard/public/v2/
67
Parse-Dashboard/v2/
78
Parse-Dashboard/parse-dashboard-config.json
89
npm-debug.log

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ COPY --from=build /src/package*.json /src/
5353

5454
# Copy compiled src dirs
5555
COPY --from=build /src/Parse-Dashboard/ /src/Parse-Dashboard/
56-
COPY --from=v2-build /Parse-Dashboard/v2 /src/Parse-Dashboard/v2
56+
COPY --from=v2-build /Parse-Dashboard/public/v2 /src/Parse-Dashboard/public/v2
5757

5858
USER node
5959

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"dev": "node ./Parse-Dashboard/index.js --dev & webpack --config webpack/build.config.js --devtool eval-source-map --progress --watch",
126126
"dashboard": "node ./Parse-Dashboard/index.js & webpack --config webpack/build.config.js --progress --watch",
127127
"pig": "http-server ./PIG -p 4041 -s & webpack --config webpack/PIG.config.js --progress --watch",
128-
"build": "webpack --node-env=production --config webpack/production.config.js && webpack --config webpack/PIG.config.js",
128+
"build": "webpack --node-env=production --config webpack/production.config.js && webpack --config webpack/PIG.config.js && npm run build --workspace=v2",
129129
"test": "jest",
130130
"lint": "eslint --ignore-path .gitignore --cache ./",
131131
"lint:fix": "DEBUG=eslint:cli-engine eslint --ignore-path .gitignore --fix --cache ./",

v2/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import react from '@vitejs/plugin-react-swc';
55
export default defineConfig({
66
plugins: [react()],
77
build: {
8-
outDir: '../Parse-Dashboard/v2',
8+
outDir: '../Parse-Dashboard/public/v2',
99
emptyOutDir: true,
1010
rollupOptions: {
1111
output: {

0 commit comments

Comments
 (0)