This repository has been archived on 2026-05-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ppp2-client/webpack.config.js
T
2023-03-23 00:48:09 +01:00

22 lines
541 B
JavaScript

import { resolve, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import webpack from 'webpack'
export default {
mode: process.env.NODE_ENV || 'production',
entry: './src/index.js',
output: {
library: {type:'module'},
filename: 'ppp2.js',
path: resolve(fileURLToPath(join(import.meta.url, '..')), 'dist')
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1
})
],
experiments: {
outputModule: true
}
}