mcf-components/webpack.common.js

23 lines
405 B
JavaScript
Raw Normal View History

2021-08-31 21:31:08 +01:00
const path = require('path')
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',
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
},
},
],
},
2021-08-31 21:31:08 +01:00
}