UNPKG

material-ui-banner

Version:

A material-ui component that allows you to add a banner underneath the app bar.

41 lines (38 loc) 864 B
const path = require('path'); const webpack = require('webpack'); const merge = require('webpack-merge'); const common = require('./webpack.config.common'); const ROOT_PATH = path.resolve(__dirname); module.exports = merge(common, { mode: 'production', entry: { 'material-ui-banner': path.resolve(ROOT_PATH, 'src/index.js'), }, externals: [ { react: { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react', }, 'react-dom': { root: 'ReactDOM', commonjs2: 'react-dom', commonjs: 'react-dom', amd: 'react-dom', }, }, "@mui/material", /@mui\/material\/*./, 'clsx', ], plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify('production'), }, __DEV__: false, }), ], });