Fix Webpack CI (#5604)

This commit is contained in:
Merlijn Vos 2025-01-15 10:11:08 +01:00 committed by GitHub
parent 7586ab4b15
commit 2903b35902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,10 +136,26 @@ jobs:
run: npm i --save-dev webpack-cli webpack@${{matrix.bundler-version}}
- run: npx webpack --version
- name: Create Webpack config file
run:
echo 'export default
{mode:"production",target:"web",entry:"./lib/index.js"}' >
webpack.config.js
run: |
echo 'export default {
mode: "production",
target: "web",
entry: "./lib/index.js",
resolve: {
fallback: {
fs: false,
path: false,
stream: false,
util: false,
assert: false,
constants: false,
crypto: false,
http: false,
https: false,
url: false
}
}
}' > webpack.config.js
- name: Bundle
run: npx webpack