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