mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 19:41:57 +08:00
13 lines
284 B
JavaScript
13 lines
284 B
JavaScript
import webpack from 'webpack';
|
|
import resolveDefine from './resolveDefine';
|
|
|
|
export default function createDefineWebpackConfig({
|
|
config,
|
|
webpackConfig
|
|
}) {
|
|
webpackConfig.plugin('define')
|
|
.use(webpack.DefinePlugin, [
|
|
resolveDefine(config)
|
|
]);
|
|
}
|