Completely updated React, fixed #11, (hopefully)
This commit is contained in:
11
goTorrentWebUI/node_modules/react-scripts/config/env.js
generated
vendored
11
goTorrentWebUI/node_modules/react-scripts/config/env.js
generated
vendored
@@ -35,13 +35,16 @@ var dotenvFiles = [
|
||||
|
||||
// Load environment variables from .env* files. Suppress warnings using silent
|
||||
// if this file is missing. dotenv will never modify any environment variables
|
||||
// that have already been set.
|
||||
// that have already been set. Variable expansion is supported in .env files.
|
||||
// https://github.com/motdotla/dotenv
|
||||
// https://github.com/motdotla/dotenv-expand
|
||||
dotenvFiles.forEach(dotenvFile => {
|
||||
if (fs.existsSync(dotenvFile)) {
|
||||
require('dotenv').config({
|
||||
path: dotenvFile,
|
||||
});
|
||||
require('dotenv-expand')(
|
||||
require('dotenv').config({
|
||||
path: dotenvFile,
|
||||
})
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
2
goTorrentWebUI/node_modules/react-scripts/config/jest/cssTransform.js
generated
vendored
2
goTorrentWebUI/node_modules/react-scripts/config/jest/cssTransform.js
generated
vendored
@@ -9,7 +9,7 @@
|
||||
'use strict';
|
||||
|
||||
// This is a custom Jest transformer turning style imports into empty objects.
|
||||
// http://facebook.github.io/jest/docs/tutorial-webpack.html
|
||||
// http://facebook.github.io/jest/docs/en/webpack.html
|
||||
|
||||
module.exports = {
|
||||
process() {
|
||||
|
2
goTorrentWebUI/node_modules/react-scripts/config/jest/fileTransform.js
generated
vendored
2
goTorrentWebUI/node_modules/react-scripts/config/jest/fileTransform.js
generated
vendored
@@ -11,7 +11,7 @@
|
||||
const path = require('path');
|
||||
|
||||
// This is a custom Jest transformer turning file imports into filenames.
|
||||
// http://facebook.github.io/jest/docs/tutorial-webpack.html
|
||||
// http://facebook.github.io/jest/docs/en/webpack.html
|
||||
|
||||
module.exports = {
|
||||
process(src, filename) {
|
||||
|
4
goTorrentWebUI/node_modules/react-scripts/config/webpack.config.dev.js
generated
vendored
4
goTorrentWebUI/node_modules/react-scripts/config/webpack.config.dev.js
generated
vendored
@@ -220,10 +220,10 @@ module.exports = {
|
||||
// that fall through the other loaders.
|
||||
{
|
||||
// Exclude `js` files to keep "css" loader working as it injects
|
||||
// it's runtime that would otherwise processed through "file" loader.
|
||||
// its runtime that would otherwise processed through "file" loader.
|
||||
// Also exclude `html` and `json` extensions so they get processed
|
||||
// by webpacks internal loaders.
|
||||
exclude: [/\.js$/, /\.html$/, /\.json$/],
|
||||
exclude: [/\.(js|jsx|mjs)$/, /\.html$/, /\.json$/],
|
||||
loader: require.resolve('file-loader'),
|
||||
options: {
|
||||
name: 'static/media/[name].[hash:8].[ext]',
|
||||
|
4
goTorrentWebUI/node_modules/react-scripts/config/webpack.config.prod.js
generated
vendored
4
goTorrentWebUI/node_modules/react-scripts/config/webpack.config.prod.js
generated
vendored
@@ -249,7 +249,7 @@ module.exports = {
|
||||
// it's runtime that would otherwise processed through "file" loader.
|
||||
// Also exclude `html` and `json` extensions so they get processed
|
||||
// by webpacks internal loaders.
|
||||
exclude: [/\.js$/, /\.html$/, /\.json$/],
|
||||
exclude: [/\.(js|jsx|mjs)$/, /\.html$/, /\.json$/],
|
||||
options: {
|
||||
name: 'static/media/[name].[hash:8].[ext]',
|
||||
},
|
||||
@@ -301,7 +301,7 @@ module.exports = {
|
||||
},
|
||||
mangle: {
|
||||
safari10: true,
|
||||
},
|
||||
},
|
||||
output: {
|
||||
comments: false,
|
||||
// Turned on because emoji and regex is not minified properly using default
|
||||
|
9
goTorrentWebUI/node_modules/react-scripts/config/webpackDevServer.config.js
generated
vendored
9
goTorrentWebUI/node_modules/react-scripts/config/webpackDevServer.config.js
generated
vendored
@@ -10,7 +10,7 @@
|
||||
|
||||
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
|
||||
const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware');
|
||||
const path = require('path');
|
||||
const ignoredFiles = require('react-dev-utils/ignoredFiles');
|
||||
const config = require('./webpack.config.dev');
|
||||
const paths = require('./paths');
|
||||
|
||||
@@ -76,12 +76,7 @@ module.exports = function(proxy, allowedHost) {
|
||||
// src/node_modules is not ignored to support absolute imports
|
||||
// https://github.com/facebookincubator/create-react-app/issues/1065
|
||||
watchOptions: {
|
||||
ignored: new RegExp(
|
||||
`^(?!${path
|
||||
.normalize(paths.appSrc + '/')
|
||||
.replace(/[\\]+/g, '\\\\')}).+[\\\\/]node_modules[\\\\/]`,
|
||||
'g'
|
||||
),
|
||||
ignored: ignoredFiles(paths.appSrc),
|
||||
},
|
||||
// Enable HTTPS if the HTTPS environment variable is set to 'true'
|
||||
https: protocol === 'https',
|
||||
|
Reference in New Issue
Block a user