适配frontend的改动
This commit is contained in:
parent
948b7b1926
commit
6745f30f1a
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue