This commit is contained in:
parent
33c874d421
commit
71ac543615
|
@ -33,7 +33,7 @@ const appPackageJson = require(paths.appPackageJson);
|
||||||
|
|
||||||
// Source maps are resource heavy and can cause out of memory issue for large source files.
|
// Source maps are resource heavy and can cause out of memory issue for large source files.
|
||||||
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
||||||
|
// const shouldUseSourceMap = false;
|
||||||
const webpackDevClientEntry = require.resolve(
|
const webpackDevClientEntry = require.resolve(
|
||||||
'react-dev-utils/webpackHotDevClient'
|
'react-dev-utils/webpackHotDevClient'
|
||||||
);
|
);
|
||||||
|
@ -69,6 +69,8 @@ const lessModuleRegex = /\.module\.less$/;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const hasJsxRuntime = (() => {
|
const hasJsxRuntime = (() => {
|
||||||
if (process.env.DISABLE_NEW_JSX_TRANSFORM === 'true') {
|
if (process.env.DISABLE_NEW_JSX_TRANSFORM === 'true') {
|
||||||
return false;
|
return false;
|
||||||
|
@ -237,9 +239,11 @@ module.exports = function (webpackEnv) {
|
||||||
// module chunks which are built will work in web workers as well.
|
// module chunks which are built will work in web workers as well.
|
||||||
globalObject: 'this',
|
globalObject: 'this',
|
||||||
},
|
},
|
||||||
|
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: isEnvProduction,
|
minimize: isEnvProduction,
|
||||||
minimizer: [
|
minimizer: [
|
||||||
|
|
||||||
// This is only used in production mode
|
// This is only used in production mode
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import {Notify} from "zent"
|
import {Notify} from "zent"
|
||||||
export const baseurl = 'http://192.168.6.75'
|
export const baseurl = 'https://marketapi.1688sup.com/'
|
||||||
window.baseurl = 'http://192.168.6.75';
|
window.baseurl = 'https://marketapi.1688sup.com/';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const upload = (method, url, params, responseType) => {
|
const upload = (method, url, params, responseType) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
|
|
Loading…
Reference in New Issue