1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

fix issues

This commit is contained in:
shanshuirenjia
2021-06-17 13:59:58 +08:00
parent 2e50a22537
commit 4d943c782a
6 changed files with 1659 additions and 117 deletions

View File

@@ -0,0 +1,4 @@
'use strict';
require('react-app-polyfill/ie9');
require('react-app-polyfill/stable');

View File

@@ -190,7 +190,7 @@ module.exports = function (webpackEnv) {
// webpack uses `publicPath` to determine where the app is being served from.
// It requires a trailing slash, or the file assets will get an incorrect path.
// We inferred the "public path" (such as / or /my-project) from homepage.
output = Object.assign({}, output, {publicPath: "http://127.0.0.1:3000/assets/bundles/"});
output = Object.assign({}, output, {publicPath: "http://192.168.1.199:3000/assets/bundles/"});
}
return output;
};

View File

@@ -40,6 +40,7 @@ const getEntries = (isEnvDevelopment) => {
let entries = {};
Object.keys(entryFiles).forEach(key => {
let entry = [];
entry.push(require.resolve('./polyfills'));
if (isEnvDevelopment) {
entry.push(require.resolve('react-dev-utils/webpackHotDevClient'));
}

File diff suppressed because it is too large Load Diff

View File

@@ -23,6 +23,7 @@
"prop-types": "^15.6.2",
"raf": "3.4.0",
"react": "^16.8.6",
"react-app-polyfill": "^2.0.0",
"react-chartjs-2": "^2.8.0",
"react-codemirror": "^1.0.0",
"react-cookies": "^0.1.0",
@@ -53,12 +54,14 @@
"production": [
">0.2%",
"not dead",
"not op_mini all"
"not op_mini all",
"ie 11"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"last 1 safari version",
"ie 11"
]
},
"jest": {
@@ -143,7 +146,6 @@
"postcss-preset-env": "6.7.0",
"postcss-safe-parser": "5.0.2",
"prompts": "2.4.0",
"react-app-polyfill": "^2.0.0",
"react-dev-utils": "11.0.4",
"react-refresh": "^0.8.3",
"resolve": "1.18.1",

File diff suppressed because one or more lines are too long