Compare commits
5 Commits
346b3c1534
...
5a22d3f977
Author | SHA1 | Date |
---|---|---|
Chocobozzz | 5a22d3f977 | 3 years ago |
Chocobozzz | 6b92524ab9 | 3 years ago |
Chocobozzz | 65bf82a2be | 3 years ago |
Chocobozzz | 0595929613 | 3 years ago |
Chocobozzz | d1d1293b3d | 4 years ago |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,20 @@ |
||||
const path = require('path') |
||||
const esbuild = require('esbuild') |
||||
|
||||
const clientFiles = [ |
||||
'common-client-plugin.js' |
||||
] |
||||
|
||||
const configs = clientFiles.map(f => ({ |
||||
entryPoints: [ path.resolve(__dirname, '..', 'client', f) ], |
||||
bundle: true, |
||||
minify: true, |
||||
format: 'esm', |
||||
target: 'safari11', |
||||
outfile: path.resolve(__dirname, '..', 'dist', f), |
||||
})) |
||||
|
||||
const promises = configs.map(c => esbuild.build(c)) |
||||
|
||||
Promise.all(promises) |
||||
.catch(() => process.exit(1)) |
@ -1,16 +0,0 @@ |
||||
const path = require("path") |
||||
|
||||
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin") |
||||
|
||||
let config = { |
||||
entry: "./client/common-client-plugin.js", |
||||
output: { |
||||
path: path.resolve(__dirname, "./dist"), |
||||
filename: "./common-client-plugin.js", |
||||
library: "script", |
||||
libraryTarget: "var" |
||||
}, |
||||
plugins: [new EsmWebpackPlugin()] |
||||
} |
||||
|
||||
module.exports = config |
Loading…
Reference in new issue