2021-08-31 21:31:08 +01:00
|
|
|
const path = require('path')
|
2020-03-16 16:35:15 +01:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: './src/index.js',
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, 'dist'),
|
|
|
|
filename: 'mcf-components.js',
|
|
|
|
library: 'mcfComponents',
|
2021-08-31 21:31:08 +01:00
|
|
|
libraryTarget: 'umd',
|
2020-03-16 16:35:15 +01:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.(js|jsx)$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: {
|
|
|
|
loader: 'babel-loader',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-08-31 21:31:08 +01:00
|
|
|
}
|