wisemapping-frontend/packages/web2d/webpack.common.js
Paulo Gustavo Veiga 5ee7448d3c Format JS files.
2022-07-12 18:58:11 -07:00

27 lines
493 B
JavaScript

const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
module.exports = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'web2d.js',
publicPath: '',
library: {
type: 'umd',
},
},
optimization: {
usedExports: true,
},
module: {
rules: [
{
use: ['babel-loader'],
test: /.(js)$/,
exclude: [/node_modules/],
},
],
},
plugins: [new CleanWebpackPlugin()],
};