2021-03-25 17:38:54 +08:00

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)
]);
}