Skip to content

Commit

Permalink
Merge pull request #225 from ogomaemmanuel/node-sass
Browse files Browse the repository at this point in the history
Node sass
  • Loading branch information
ogomaemmanuel committed Oct 29, 2023
2 parents bf646e5 + c5dea10 commit 4535f38
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hr_core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM node:18-alpine3.15 as nodejs
WORKDIR /app
COPY . .
RUN unset NODE_OPTIONS
RUN apk add --update --no-cache python2.7 git make g++
RUN apk add --update --no-cache python2 git make g++
RUN git config --global url."https://github.com".insteadOf git://github.com
RUN npm install -g node-gyp && npm install
RUN npm install -g node-gyp@latest && npm install
RUN npm run prod

FROM maven:3.8.6-eclipse-temurin-17 AS build
Expand Down
8 changes: 7 additions & 1 deletion hr_core/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ let commonConfig=
use: [
'vue-style-loader',
'css-loader',
'sass-loader'
{
loader: 'sass-loader',
options: {
// Prefer `dart-sass`
implementation: require('sass'),
},
}
]
},

Expand Down
8 changes: 7 additions & 1 deletion hr_core/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ module.exports = env => {
use: [
'vue-style-loader',
'css-loader',
'sass-loader'
{
loader: 'sass-loader',
options: {
// Prefer `dart-sass`
implementation: require('sass'),
},
}
]
},
// for loading css not in vue files
Expand Down

0 comments on commit 4535f38

Please sign in to comment.