Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user