aem-core-components-contributions-react-core
Version:
AEM - React Wrapper components - for the OOTB AEM Core Components
21 lines (17 loc) • 594 B
JavaScript
const DllPlugin = require("webpack").DllPlugin;
const config = require('./webpack.config.base');
const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
config.output.library = 'AbstractCoreComponent';
config.entry = {
'AbstractCoreComponent': ['./src/AbstractCoreComponent.tsx'],
};
config.plugins.push(new CleanWebpackPlugin());
config.plugins.push(
new DllPlugin({
context: path.join(__dirname, '..'),
name: "[name]",
path: path.resolve(__dirname, `./../dist/manifest/[name].json`),
})
);
module.exports = config;