36 lines
639 B
JavaScript
Raw Normal View History

2021-10-02 19:52:56 -07:00
const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
2021-07-16 11:41:58 -03:00
module.exports = {
2022-07-12 18:58:11 -07:00
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'core.js',
publicPath: '',
library: {
type: 'umd',
2021-07-16 11:41:58 -03:00
},
2022-07-12 18:58:11 -07:00
},
target: 'web',
optimization: {
usedExports: true,
},
module: {
rules: [
{
use: 'babel-loader',
test: /.js$/,
exclude: [/node_modules/],
},
],
},
resolve: {
extensions: ['.js'],
},
plugins: [
new CleanWebpackPlugin({
dangerouslyAllowCleanPatternsOutsideProject: true,
dry: false,
}),
],
2021-07-16 11:41:58 -03:00
};