修改示例模板中的compiler.js
This commit is contained in:
parent
a5bd91754f
commit
ffe98e1710
|
|
@ -1,5 +1,6 @@
|
||||||
// import { CompilerConfiguration } from 'oak-domain/lib/types/Configuration';
|
// import { CompilerConfiguration } from 'oak-domain/lib/types/Configuration';
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const { CreateComilerConfig } = require('@xuchangzju/oak-cli/lib/createConfig')
|
||||||
const oakGeneralBusinessPath = path.resolve(
|
const oakGeneralBusinessPath = path.resolve(
|
||||||
'node_modules/oak-general-business/es'
|
'node_modules/oak-general-business/es'
|
||||||
);
|
);
|
||||||
|
|
@ -7,12 +8,11 @@ const oakFrontendBasePath = path.resolve(
|
||||||
'node_modules/oak-frontend-base/es'
|
'node_modules/oak-frontend-base/es'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
const oakPayBusinessPath = path.resolve(
|
const oakPayBusinessPath = path.resolve(
|
||||||
'node_modules/oak-pay-business/es'
|
'node_modules/oak-pay-business/es'
|
||||||
);
|
);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = CreateComilerConfig({
|
||||||
webpack: {
|
webpack: {
|
||||||
extraOakModules: [/oak-pay-business/, /oak-general-business/],
|
extraOakModules: [/oak-pay-business/, /oak-general-business/],
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
@ -23,4 +23,4 @@ module.exports = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue