Skip to content

Commit

Permalink
Optimised build pipeline so that all assets are compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl committed Nov 28, 2024
1 parent cbb5d67 commit 1ce3549
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"scripts": {
"build": "npm run build:assets & npm run build:frontend",
"build:frontend": "webpack --mode=production",
"build:assets": "webpack --config webpack.assets.config.js --mode=production & webpack --config webpack.appinsights.config.js --mode=production",
"build:watch": "webpack --mode=development --watch"
"build": "webpack --config webpack.config.js --config webpack.assets.config.js --config webpack.appinsights.config.js --mode=production",
"build:watch": "webpack --mode=development --config webpack.config.js --config webpack.assets.config.js --config webpack.appinsights.config.js --watch"
},
"devDependencies": {
"copy-webpack-plugin": "^7.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
display: inline;
line-height: 2;
}

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN dotnet publish Dfe.PrepareConversions -c Release -o /app --no-restore

# Stage 2 - Build assets
FROM node:${NODEJS_IMAGE_TAG} as build
COPY --from=publish /app /app
COPY ./Dfe.PrepareConversions/Dfe.PrepareConversions/wwwroot /app/wwwroot
WORKDIR /app/wwwroot
RUN npm install
RUN npm run build
Expand Down

0 comments on commit 1ce3549

Please sign in to comment.