We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f045b commit 4c310afCopy full SHA for 4c310af
webpack.config.cjs
@@ -52,4 +52,14 @@ module.exports = {
52
],
53
},
54
externals: [nodeExternals()],
55
+ plugins: [
56
+ // This is necessary to make the CLI executable. We originally have this
57
+ // in src/cli.ts but it gets erased during the bundling process.
58
+ new webpack.BannerPlugin({
59
+ banner: "#!/usr/bin/env node",
60
+ raw: true,
61
+ entryOnly: true,
62
+ include: "cli",
63
+ }),
64
+ ],
65
};
0 commit comments