Skip to content

Commit

Permalink
Merge branch 'edge' into ME-15925-debug-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi authored Apr 9, 2024
2 parents f8a11a4 + d4ea9d7 commit 23ad3d9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion webpack/es6.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
const { merge } = require('webpack-merge');
const webpackCommon = require('./common.config');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');

delete webpackCommon.output; // overwrite

const outputPath = path.resolve(__dirname, '../lib');

module.exports = merge(webpackCommon, {
mode: 'production',

Expand All @@ -16,14 +19,23 @@ module.exports = merge(webpackCommon, {

output: {
filename: '[name].js',
path: path.resolve(__dirname, '../lib'),
path: outputPath,
chunkFilename: '[name].js',
publicPath: '',
library: {
type: 'module'
}
},

plugins: [
new CopyWebpackPlugin({
patterns: [{
from: path.resolve(__dirname, '../src/config/profiles'),
to: `${outputPath}/profiles`
}]
})
],

experiments: {
outputModule: true
}
Expand Down

0 comments on commit 23ad3d9

Please sign in to comment.