-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.cjs
42 lines (41 loc) · 920 Bytes
/
webpack.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Generated using webpack-cli https://github.com/webpack/webpack-cli
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
mode: "none",
entry: "./dist/index.js",
experiments: {
outputModule: true
},
output: {
library: {
type: 'module',
},
chunkFormat: 'module',
module: true,
path: __dirname + "/lib",
filename: 'index.min.mjs',
},
plugins: [],
optimization: {
minimize: true,
minimizer: [new TerserPlugin({
parallel: true,
terserOptions: {
module: true
},
})],
},
module: {
rules: [
{
test: /\.m?js$/,
resolve: {
fullySpecified: false,
},
},
],
},
resolve: {
extensions: [".js"],
},
}