Fixed prod build and Actions now creates a sitemap

This commit is contained in:
n1474335 2021-01-22 15:17:17 +00:00
parent fabea8cc61
commit 7747bfe0f2
3 changed files with 7 additions and 4 deletions

View File

@ -30,6 +30,9 @@ jobs:
run: npx grunt prod run: npx grunt prod
- name: UI Tests - name: UI Tests
run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
- name: Generate sitemap
run: npx grunt exec:sitemap
# - name: grunt copy:ghPages
# - name: Deploy # - name: Deploy
# uses: peaceiris/actions-gh-pages@v3 # uses: peaceiris/actions-gh-pages@v3
# with: # with:

View File

@ -242,10 +242,6 @@ module.exports = function (grunt) {
entry: Object.assign({ entry: Object.assign({
main: "./src/web/index.js" main: "./src/web/index.js"
}, moduleEntryPoints), }, moduleEntryPoints),
output: {
publicPath: "",
globalObject: "this"
},
resolve: { resolve: {
alias: { alias: {
"./config/modules/OpModules.mjs": "./config/modules/Default.mjs" "./config/modules/OpModules.mjs": "./config/modules/Default.mjs"

View File

@ -34,6 +34,10 @@ const banner = `/**
module.exports = { module.exports = {
output: {
publicPath: "",
globalObject: "this"
},
plugins: [ plugins: [
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
$: "jquery", $: "jquery",