27 lines
824 B
JavaScript
27 lines
824 B
JavaScript
// import { CompilerConfiguration } from 'oak-domain/lib/types/Configuration';
|
|
const path = require('path');
|
|
const { CreateCompilerConfig } = require('@xuchangzju/oak-cli/lib/createConfig')
|
|
const oakGeneralBusinessPath = path.resolve(
|
|
'node_modules/oak-general-business/es'
|
|
);
|
|
const oakFrontendBasePath = path.resolve(
|
|
'node_modules/oak-frontend-base/es'
|
|
);
|
|
|
|
const oakPayBusinessPath = path.resolve(
|
|
'node_modules/oak-pay-business/es'
|
|
);
|
|
|
|
module.exports = CreateCompilerConfig({
|
|
webpack: {
|
|
extraOakModules: [/oak-pay-business/, /oak-general-business/],
|
|
resolve: {
|
|
alias: {
|
|
'@oak-general-business': oakGeneralBusinessPath,
|
|
'@oak-frontend-base': oakFrontendBasePath,
|
|
'@project': path.resolve('src'),
|
|
}
|
|
}
|
|
}
|
|
});
|