mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Deployment improvements and potential webpack fix
This commit is contained in:
4
.github/workflows/autodeploy.yml
vendored
4
.github/workflows/autodeploy.yml
vendored
@@ -29,8 +29,12 @@ jobs:
|
||||
cd coriolis-data
|
||||
export NVM_DIR=~/.nvm
|
||||
source ~/.nvm/nvm.sh
|
||||
npm install
|
||||
npm audit fix
|
||||
npm start
|
||||
cd ../coriolis
|
||||
npm install
|
||||
npm audit fix
|
||||
npm run build
|
||||
- name: Deploy the code
|
||||
shell: bash
|
||||
|
||||
4
.github/workflows/manualdeploy.yml
vendored
4
.github/workflows/manualdeploy.yml
vendored
@@ -34,8 +34,12 @@ jobs:
|
||||
cd coriolis-data
|
||||
export NVM_DIR=~/.nvm
|
||||
source ~/.nvm/nvm.sh
|
||||
npm install
|
||||
npm audit fix
|
||||
npm start
|
||||
cd ../coriolis
|
||||
npm install
|
||||
npm audit fix
|
||||
npm run build
|
||||
- name: Deploy the code
|
||||
shell: bash
|
||||
|
||||
@@ -5,6 +5,7 @@ const path = require('path');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const { InjectManifest } = require('workbox-webpack-plugin');
|
||||
const { max } = require('lodash');
|
||||
|
||||
module.exports = merge(common, {
|
||||
// devtool: 'source-map',
|
||||
@@ -15,6 +16,11 @@ module.exports = merge(common, {
|
||||
output: {
|
||||
globalObject: 'this'
|
||||
},
|
||||
performance: {
|
||||
hints: false,
|
||||
maxEntrypointSize: 512000,
|
||||
maxAssetSize: 512000
|
||||
},
|
||||
plugins: [
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
|
||||
Reference in New Issue
Block a user