material-ui-banner
Version:
A material-ui component that allows you to add a banner underneath the app bar.
40 lines (37 loc) • 950 B
JavaScript
const path = require('path');
const ROOT_PATH = path.resolve(__dirname);
// Common configuration settings
module.exports = {
entry: path.resolve(ROOT_PATH, 'src/index.js'),
resolve: {
extensions: ['.js', '.jsx'],
modules: [path.resolve(__dirname, 'node_modules')],
},
output: {
path: path.resolve(ROOT_PATH, 'dist'),
filename: 'index.js',
library: 'MaterialUiBanner',
libraryTarget: 'umd',
futureEmitAssets: true,
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
include: path.resolve(ROOT_PATH, 'src'),
use: {
loader: 'babel-loader',
options: {
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
plugins: [
['@babel/plugin-proposal-class-properties', { loose: false }],
],
},
},
},
],
},
};