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.
|
||||
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
||||
|
||||
// const shouldUseSourceMap = false;
|
||||
const webpackDevClientEntry = require.resolve(
|
||||
'react-dev-utils/webpackHotDevClient'
|
||||
);
|
||||
|
@ -69,6 +69,8 @@ const lessModuleRegex = /\.module\.less$/;
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
const hasJsxRuntime = (() => {
|
||||
if (process.env.DISABLE_NEW_JSX_TRANSFORM === 'true') {
|
||||
return false;
|
||||
|
@ -237,9 +239,11 @@ module.exports = function (webpackEnv) {
|
|||
// module chunks which are built will work in web workers as well.
|
||||
globalObject: 'this',
|
||||
},
|
||||
|
||||
optimization: {
|
||||
minimize: isEnvProduction,
|
||||
minimizer: [
|
||||
|
||||
// This is only used in production mode
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import {Notify} from "zent"
|
||||
export const baseurl = 'http://192.168.6.75'
|
||||
window.baseurl = 'http://192.168.6.75';
|
||||
export const baseurl = 'https://marketapi.1688sup.com/'
|
||||
window.baseurl = 'https://marketapi.1688sup.com/';
|
||||
|
||||
|
||||
|
||||
const upload = (method, url, params, responseType) => {
|
||||
let obj = {
|
||||
|
|
Loading…
Reference in New Issue