Resolve build issues

master
Diman0 3 years ago
parent df64601b28
commit 5afbf37292

@ -2,7 +2,7 @@
ARG DISTRO=alpine:3.14 ARG DISTRO=alpine:3.14
ARG ARCH="" ARG ARCH=""
FROM ${ARCH}node:8 as assets FROM ${ARCH}node:16 as assets
COPY --from=balenalib/rpi-alpine:3.14 /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static COPY --from=balenalib/rpi-alpine:3.14 /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static
COPY package.json ./ COPY package.json ./

@ -12,21 +12,21 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@babel/core": "^7.14.6", "@babel/core": "^7.15.0",
"@babel/preset-env": "^7.14.7", "@babel/preset-env": "^7.15.0",
"admin-lte": "^3.1.0", "admin-lte": "^3.1.0",
"babel-loader": "^8.0.6", "babel-loader": "^8.2.2",
"css-loader": "^2.1.1", "css-loader": "^6.2.0",
"expose-loader": "^0.7.5", "expose-loader": "^3.0.0",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"less": "^3.13.1", "less": "^4.1.1",
"less-loader": "^5.0.0", "less-loader": "^10.0.1",
"mini-css-extract-plugin": "^1.2.1", "mini-css-extract-plugin": "^2.2.0",
"node-sass": "^4.13.1", "node-sass": "^6.0.1",
"sass-loader": "^7.3.1", "sass-loader": "^12.1.0",
"select2": "^4.0.13", "select2": "^4.0.13",
"url-loader": "^2.3.0", "url-loader": "^4.1.1",
"webpack": "^4.33.0", "webpack": "^5.50.0",
"webpack-cli": "^3.3.12" "webpack-cli": "^4.7.2"
} }
} }

@ -39,10 +39,9 @@ module.exports = {
test: require.resolve('jquery'), test: require.resolve('jquery'),
use: [{ use: [{
loader: 'expose-loader', loader: 'expose-loader',
options: 'jQuery' options: {
}, { exposes: ['$','jQuery']
loader: 'expose-loader', },
options: '$'
}] }]
} }
] ]

Loading…
Cancel
Save