适配frontend的改动

This commit is contained in:
Xu Chang 2024-06-20 17:44:03 +08:00
parent 948b7b1926
commit 6745f30f1a
3 changed files with 2 additions and 6 deletions

View File

@ -29,7 +29,7 @@ const oakPathPlugin = require('../babel-plugin/oakPath');
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
const shouldAnalyze = process.env.COMPILE_ANALYZE === 'true';
const memoryLimit = process.env.MEMORY_LIMIT ? Number(process.env.MEMORY_LIMIT) : 4096;
const memoryLimit = process.env.MEMORY_LIMIT ? Number(process.env.MEMORY_LIMIT) : 8192;
const copyPatterns = [].concat(pkg.copyWebpack || []).map((pattern) =>
typeof pattern === 'string'

View File

@ -713,10 +713,8 @@ module.exports = function (webpackEnv) {
'less-loader',
{
lessOptions: () => {
const oakConfigJson = require(paths.oakConfigJson);
return {
javascriptEnabled: true,
modifyVars: oakConfigJson.theme,
};
},
}
@ -737,10 +735,8 @@ module.exports = function (webpackEnv) {
'less-loader',
{
lessOptions: () => {
const oakConfigJson = require(paths.oakConfigJson);
return {
javascriptEnabled: true,
modifyVars: oakConfigJson.theme,
};
},
}

View File

@ -1,5 +1,5 @@
"use oak router builder"; // 这行备注说明是用oak的router builder来生成allRouters
import React from 'react';
import { IRouter } from '../../types/router';
import { IRouter } from 'oak-frontend-base/es/platforms/web/router/types';
let allRouters: IRouter[] = [];
export default allRouters;