This commit is contained in:
姜棚 2021-12-02 10:36:10 +08:00
parent 33c874d421
commit 71ac543615
2 changed files with 9 additions and 3 deletions

View File

@ -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: {

View File

@ -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 = {